Project

General

Profile

Actions

Feature #10824

closed

How to send API key in PHP

Added by Rick H almost 12 years ago. Updated almost 12 years ago.

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 #1

Updated by Jeffrey Clark almost 12 years ago

  • Status changed from New to Resolved

Clearly documented here.

Rest_api

Actions #2

Updated by Mischa The Evil almost 12 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Invalid

Indeed.

Actions

Also available in: Atom PDF