Ingen treff

Hent kontakt

API-URL

URL for sending av HTTP-forespørsler:

https://portal.bulkgate.com/api/1.0/address-book/get
Merk

Hvis forespørselen ikke når frem, gjentar du den på reserveserveren backup1.bulkgate.com.

Støttede HTTP-metoder

  • POST - application/json
POST /api/1.0/address-book/get HTTP/1.1 Host: portal.bulkgate.com Content-Type: application/json

Parametertabell

PARAMETERNAVN VERDI OBLIGATORISK STANDARDVERDI
application_id Applikasjons-ID Ja -
application_token Applikasjonstoken Ja -
phone_number Telefonnummeret som skal slås opp. Ja -
category Adresseboken det skal arbeides med. Standard er kontoens hovedadressebok. Nei main

Eksempel på forespørsel

POST /api/1.0/address-book/get HTTP/1.1 Host: portal.bulkgate.com Content-Type: application/json { "application_id": 451, "application_token": "NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj", "phone_number": "123456789" }

Svar

Ved suksess:

{ "data": { "phone_mobile": "123456789", "phone": "", "phone_number_iso": null, "email": "", "url": "", "first_name": "Morgan", "last_name": "Yu", "title_before": "", "title_after": "", "gender": "", "type": "", "street1": "", "street2": "", "city": "", "zip": "", "state": "", "country": "", "company_name": "", "company_number": "", "company_vat": "", "custom_field_0": "", "custom_field_1": "", "custom_field_2": "", "custom_field_3": "", "custom_field_4": "", "custom_field_5": "", "custom_field_6": "", "custom_field_7": "", "custom_field_8": "", "custom_field_9": "" } }

Ved feil:

{ "type": "number_not_found", "code": 400, "error": "Number not found", "detail": null } { "type": "invalid_phone_number", "code": 400, "error": "Invalid phone number", "detail": null }

Der:

  • type og error (beskrivelse av feilen) finner du i tabellen over feiltyper
  • code er HTTP-feilkoden
  • detail er tilleggsinformasjon om feilen
Var denne siden nyttig?