Actions
Feature #10824
closedHow to send API key in PHP
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Invalid
Description
Hi All,
If I use the following commands in php:
$url = "http://mydomain.com";
$echo = file_get_contents($url);
I get results back.
Now, If I try to get some xml back, $url = "http://mydomain.com/issues.xml";
I get no results back, because I have to send authentication.
Can this be done by sending the API key in the URL ?
something like: e.g. $url = "http://mydomain.com/issues.xml?api=myapikey";
I havn't played with the Rest API yet in PHP.
I am thinking this should be able to work without it.
Thanks, Rick
Actions