开发者

Send HTTP REQUEST (Authenticate request)

It is done via iContact Api - but I am not clear on that part: send HTTP request.

I saw an example:

Example HTTP Header
Accept: text/xml Note: Values for this are text/xml or application/json
Content-Type: text/xml Note: 开发者_如何学CValues for this are text/xml or application/json
Api-Version: 2.0
Api-AppId: 4eOFlFJabcdenVoljgPv9av59C54alz4
Api-Username: myusername
API-Password: my_password

I am sorry for the stupid question and it is my first time to attempt api.

Anyone could lend me a help in how to code to authenticate the https request?

thanks.


It looks like they have examples for the entire API here:

http://developer.icontact.com/documentation/code-library

You can download all the examples from this link:

http://developer.icontact.com/documentation/code-library-zip-file

In the examples zip, the util.php file contains a function (callResource()) that performs the request and sends the authentication headers.

The examples zip also contains a config.php file that must be edited to contain your specific username, passsword and appId.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜