Advertisement
Guest User

Untitled

a guest
May 27th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. =================================== EXAMPLE with empty page attr ====================
  2. curl --request POST \
  3. --url http://api.phoenix-widget.com/api/v1/rtb/5b3336264f32fe4088e5881e/5b46129a4f32fe7c08da1b75 \
  4. --header 'content-type: application/json' \
  5. --data '{
  6. "id": "d49347f4-22f0-4265-b88b-98546aa9557d",
  7. "site": {
  8. "id": "140312",
  9. "domain": "russian.rt.com",
  10. "page": ""
  11. },
  12. "device": {
  13. "ua": "Mozilla\/5.0 (Windows NT 5.1) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/49.0.2623.112 Safari\/537.36",
  14. "ip": "91.124.3.134",
  15. "language": "ru"
  16. },
  17. "user": {
  18. "id": "eaa02b76-6cd9-43de-a431-430a6ea04c59"
  19. },
  20. "at": 1,
  21. "cur": ["USD"],
  22. "imp": [{
  23. "id": "1",
  24. "native": {
  25. "ver": "1.1",
  26. "request": "{\"assets\":[{\"id\":3,\"required\":1,\"img\":{\"wmin\":400,\"hmin\":250,\"type\":3,\"mimes\":[\"image\\\/png\",\"image\\\/jpg\"]}},{\"id\":1,\"required\":1,\"title\":{\"len\":100}},{\"id\":2,\"required\":1,\"data\":{\"type\":1,\"len\":25}}],\"plcmttype\":4,\"plcmtcnt\":3,\"ver\":\"1.1\",\"context\":1}"
  27. },
  28. "secure": 1,
  29. "bidfloor": 0.01
  30. }]
  31. }'
  32.  
  33.  
  34. =========================== not empty (valid request)=========================================
  35. curl --request POST \
  36. --url http://api.phoenix-widget.com/api/v1/rtb/5b3336264f32fe4088e5881e/5b46129a4f32fe7c08da1b75 \
  37. --header 'content-type: application/json' \
  38. --data '{
  39. "id": "d49347f4-22f0-4265-b88b-98546aa9557d",
  40. "site": {
  41. "id": "140312",
  42. "domain": "russian.rt.com",
  43. "page": "https:\/\/russian.rt.com\/sport\/news\/556193-prichina-udaleniya-ronaldu-valensiya?utm_medium=referral&utm_source=lentainform&utm_campaign=russian.rt.com&utm_term=1272982&utm_content=6685997"
  44. },
  45. "device": {
  46. "ua": "Mozilla\/5.0 (Windows NT 5.1) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/49.0.2623.112 Safari\/537.36",
  47. "ip": "91.124.3.134",
  48. "language": "ru"
  49. },
  50. "user": {
  51. "id": "eaa02b76-6cd9-43de-a431-430a6ea04c59"
  52. },
  53. "at": 1,
  54. "cur": ["USD"],
  55. "imp": [{
  56. "id": "1",
  57. "native": {
  58. "ver": "1.1",
  59. "request": "{\"assets\":[{\"id\":3,\"required\":1,\"img\":{\"wmin\":400,\"hmin\":250,\"type\":3,\"mimes\":[\"image\\\/png\",\"image\\\/jpg\"]}},{\"id\":1,\"required\":1,\"title\":{\"len\":100}},{\"id\":2,\"required\":1,\"data\":{\"type\":1,\"len\":25}}],\"plcmttype\":4,\"plcmtcnt\":3,\"ver\":\"1.1\",\"context\":1}"
  60. },
  61. "secure": 1,
  62. "bidfloor": 0.01
  63. }]
  64. }'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement