Jump to content

Need help with Sending Headers and Commission Junction's API (REST)


simedogz

Recommended Posts

Hello all,

 

I am trying to Utilize Commission Junction's API.

 

I tried using SOAP, but I could not get it to work. So now I am trying REST, which seems simpler. However, I am running into problems with the REST request.

I am trying to get the sample code CJ publishes on their website to run.

 

Here is the sample URI:

https://product-search.api.cj.com/v2/product-search?website-id=12345678keywords=GPS&serviceable-area=US

 

In addition they mention, " Commission Junction's REST Web Services use the standard HTTP Authorization header to pass authentication information. You must provide your developer key to pass authentication. The request URI for the Publisher Lookup Service API must be properly encoded based on HTML 4 specification form content encoding rules. Please refer to http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4 for the standard specification. "

 

How do I sender a header authorization with PHP? What all needs to be in it?

I know about Header()... but how does one know how to send the Authorization ID and what syntax to use?

 

For more info, here is Commission Junction's webpage regarding APIs:

 

http://help.cj.com/en/web_services/web_services.htm#api_hosts.htm

 

Thanks for your help

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.