API endpoint
authenticationTo access the Spread.ly API you have to add the Access-Key (request yours here: http://spreadly.com/advertiser/dealapi) like this: http://api.spreadly.com/deals?access_token=#your_access_key# data formatA POST has the Content-Type application/json and represents a single deal. JSON example (coupon type: code){
"name": "Test-Kampagne",
"motivation": {
"title": "20 € für Ihren Like!",
"text": "Ihr Like ist uns Geld wert. Sie erhalten für Ihren Like einen 20 Euro Amazon Gutschein! Like klicken und danach sofort Gutschein herunterladen."
},
"spread": {
"title": "DozentenScout: Marktplatz für Weiterbildung",
"text": "Seminare und Trainer finden, Jobs ausschreiben, Fachartikel aus der Weiterbildungsbranche lesen.",
"url": "http://example.com/",
"img": "http://example.com/spread.jpg",
"tos": "http://example.com/tos"
},
"coupon": {
"type": "code",
"title": "Amazon Gutschein von Spreadly",
"text": "Klicken Sie diesen Link um sich Ihren Amazon Gutschein herunter zu laden. Sie können diesen Gutschein uneingeschränkt nutzen und auch an Dritte weitergeben.",
"code": "DEMO",
"redeem_url": "http://example.com/redeem"
},
"billing": {
"type": "like",
"target_quantity": 10.0
}
}The fields: global
motivation
The motivation-part describes your deal and is used to motivate the user to participate
spreadWith the spread, you can choose which informations will be shared by the user.
couponyou can choose between three types of coupons. The coupon code:
JSON example: [...]
"coupon": {
"type": "code",
"title": "Amazon Gutschein von Spreadly",
"text": "Klicken Sie diesen Link ...",
"code": "DEMO",
"redeem_url": "http://example.com/redeem"
}
[...]The download coupon:
JSON example: [...]
"coupon": {
"type": "download",
"title": "Amazon Gutschein von Spreadly",
"text": "Klicken Sie diesen Link ...",
"url": "http://example.com/download"
}
[...]The url coupon:
JSON example: [...]
"coupon": {
"type": "url",
"title": "Amazon Gutschein von Spreadly",
"text": "Klicken Sie diesen Link...",
"url": "http://example.com/visit"
}
[...]billing
To get some informations about the pricing, visit http://spreadly.local/advertiser/dealapi oder write an e-mail to marco@ekaabo.com | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
► Sign in to add a comment