Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
817
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.36 KB | None | 0 0
  1. POST /v1/ads HTTP/1.1
  2. Host: api.implio.com
  3. Content-Type: application/json
  4. X-Api-Key: YOUR_API_KEY
  5. Cache-Control: no-cache
  6.  
  7. [{
  8.     "id": "345678",
  9.     "content": {
  10.         "title": "Macbook pro for sale",
  11.         "body": "Macbook pro in mint condition",
  12.         "type": {
  13.             "id": "sale",
  14.             "name": "For sale"
  15.         },
  16.         "price": {
  17.             "amount": 1000,
  18.             "currency": "EUR"
  19.         },
  20.         "category": {
  21.             "id": "10",
  22.             "name": "Electronics"
  23.         },
  24.         "images": [
  25.         { "src": "https://upload.wikimedia.org/wikipedia/commons/c/c5/MacBook_Pro_(15).jpg" },
  26.         { "src": "https://upload.wikimedia.org/wikipedia/commons/0/07/Macbook_Pro_PSD.png" },
  27.         { "src": "https://upload.wikimedia.org/wikipedia/commons/thumb/b/b9/MacBook_Pro_Box_(23526318026).jpg/640px-MacBook_Pro_Box_(23526318026).jpg" }
  28.         ],
  29.         "customerSpecific":{
  30.             "VAT_number": "12345678"
  31.         }
  32.     },
  33.     "location": {
  34.         "city": "Msida",
  35.         "postalCode": "MSD 1010",
  36.         "region": "Malta",
  37.         "countryCode": "MT",
  38.         "ipAddress": "192.168.0.1",
  39.         "customerSpecific":{
  40.             "street": "Blue street"
  41.         }
  42.     },
  43.     "user":{
  44.         "id": "123453",
  45.         "name": "Johnny Shaw",
  46.         "phoneNumbers": [
  47.           "070-123421"
  48.         ],
  49.         "emailAddresses": [
  50.           "johnny.shaw@gmail.com"
  51.         ],
  52.         "customerSpecific":{
  53.             "facebookName": "johnnyshaw"
  54.         }
  55.     },
  56.     "customerSpecific":{
  57.         "secretId":"xy7e32w"
  58.     }
  59. }]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement