Guest User

Untitled

a guest
Nov 8th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. curl 'https://partners.com/api/v2/login' -d 'username=user&password=pass'
  2.  
  3. {"access_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyaWQiOiI1YTAxZGNlZjlkNmQ1ZTAwMDI3YWMyNGEifQ.zcC5w6SHL-PN4kZgnDVh75jqLJ5BsKP27YZi7xaiels","token_type":"bearer","user_id":"5a01dcef9d6d5e00027ac24a"}Imac-Office:~ Martin$
  4.  
  5. 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"}}'
  6.  
  7. curl 'https://partners.com/api/v2/login' -d 'username=user&password=pass'
  8.  
  9. 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