| <<< |
confirmLink |
Method Description |
Send a confirmation to RevTwt after the ad is tweeted. Every call to GetAdLink must be followed by a call to
ConfirmLink and the Twitter username in the two calls must match. Otherwise, the ad will not be activated and you will not be credited for clicks
on the ad.
|
Arguments |
data[user] (Required)
Your RevTwt API user id. This is used to
credit the clicks to your account.
|
data[key] (Required)
KEY for your user id
Apply for API license to get your user ID and key
|
data[link_id] (Required)
The link id you received from the getAdLink API
|
data[link_twi_id] (Required)
The tweet id you obtain from Twitter when you post the ad,
e.g., revtwt/status/1795686898
The Twitter username in the tweet id must match the data[twname] in the GetAdLink call. Otherwise, you will not be credited
for clicks on the ad.
|
Response |
The response is an XML file containing a 0
<?xml version="1.0" encoding="UTF-8" ?>
<res>
0
</res>
|
Error Code |
| 105: Database error |
| 300: Invalid Parameters, e.g., USER ID or USER KEY is empty |
| 400: Invalid USER ID |
404: Invalid USER KEY
|
Request URL |
| http://revtwt.com/api/urls/confirmLink.xml |
Usage Example |
| curl -H "Accept: text/xml" -d data[user]=your id -d data[key]=your key -d data[link_id]=1 -d data[link_twi_id]='revtwt/status/1795686898' http://revtwt.com/api/links/confirmLink.xml |