Geocoding

 View Only
  • 1.  api header

    Posted 07-31-2022 20:44
    Hi, 

    I tried to use Precisely gecode API below, got error: 'WWW-Authenticate': 'Invalid Access Token'

    would you please help? Thanks, Libo

    parameters = {
    "country": "Australia",
    "mainAddress": "349 Somerville Road WEST FOOTSCRAY,VIC Australia",
    "matchMode": "Standard",
    "fallbackGeo": "true",
    "fallbackPostal": "true",
    "removeAccentMarks": "false"
    }
    headerV = {
    "Accept": "application/json",
    "Content-Type": "application/json",
    "user": "myemail",
    "Authorization": "Bearer {apikey}"
    }
    response = requests.get(
    "https://api.precisely.com/geocode/v1/basic/geocode", params=parameters, headers=headerV)

    print(response.url)
    print(response.headers)

    ------------------------------
    Libo Cao
    Knowledge Community Shared Account
    ------------------------------


  • 2.  RE: api header

    Employee
    Posted 08-16-2022 05:03
    Hi Libo,
    did you sort it out? If not the APIKEY is not the token needed. If you have created your APIKEY and your SECRET follow these instructions to create an access token:
    Generating an OAuth Token

    Regards

    Andreas

    ------------------------------
    Andreas Homa
    Principal Solution Consultant
    Precisely | Trust in Data
    ------------------------------