simedogz Posted August 22, 2009 Share Posted August 22, 2009 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 Link to comment https://forums.phpfreaks.com/topic/171451-need-help-with-sending-headers-and-commission-junctions-api-rest/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.