Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Development
  1. OpenProject
  2. Forums
  3. Development
  4. conect API whit PHP

conect API whit PHP

Added by Jose Luis Esparza over 7 years ago

i want to know how can conect with PHP this is my source
@
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(‘apikey’=>‘sajghdfjjagdhsfxxxxxxxx’));
curl_setopt($ch, CURLOPT_URL, ‘http://url/api/v3/projects/97/queries/default?pageSize=200&showHierarchies=true’);
$result = curl_exec($ch);@

but i can´t


Replies (1)

RE: conect API whit PHP - Added by Jose Luis Esparza over 7 years ago

resolved this whit this line

@ curl_setopt($ch, CURLOPT_HTTPHEADER, array(“Authorization: Basic ”.base64_encode(‘apikey:895755dsghsXXXSsdXXXXXXX’)));@

  • (1 - 1/1)
Loading...