Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl 'https://partners.com/api/v2/login' -d 'username=user&password=pass'
- {"access_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyaWQiOiI1YTAxZGNlZjlkNmQ1ZTAwMDI3YWMyNGEifQ.zcC5w6SHL-PN4kZgnDVh75jqLJ5BsKP27YZi7xaiels","token_type":"bearer","user_id":"5a01dcef9d6d5e00027ac24a"}Imac-Office:~ Martin$
- curl 'https://partners.com/api/v2/traffic-channels' -H 'Authorization: Bearer TOKEN' -d '{"trafficChannel":{"name":"tc10","status":0,"billedEvent":"ai","env":"desktop","dealType":"fixed_price","cost":2,"floor":2.5,"optimizeAllAdSources":true,"optimizeFor":"fillRate","publisher":"5a01e576becbf9000255f29c"}}'
- curl 'https://partners.com/api/v2/login' -d 'username=user&password=pass'
- curl 'https://partners.com/api/v2/traffic-channels' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyaWQiOiI1YTAxZGNlZjlkNmQ1ZTAwMDI3YWMyNGEifQ.zcC5w6SHL ' -d '{"trafficChannel":{"name":"tc10","status":0,"billedEvent":"ai","env":"desktop","dealType":"fixed_price","cost":2,"floor":2.5,"optimizeAllAdSources":true,"optimizeFor":"fillRate","publisher":"5a01e576becbf9000255f29c"}}'
Add Comment
Please, Sign In to add comment