vector api, 401 http error code, Signature mismatch. Authorization signature or client credential is wrong

前端 未结 2 468
予麋鹿
予麋鹿 2020-12-12 05:20

I\'m trying to use the here maps vector-tiles api. I\'ve received my credentials from developer.here.com. I created an app for HERE SDK for Android or iOS (Lite Editio

相关标签:
2条回答
  • 2020-12-12 06:06

    curl -X POST \ https://account.api.here.com/oauth2/token \ -H 'Accept: /' \ -H 'Accept-Encoding: gzip, deflate' \ -H 'Authorization: OAuth' \ -H 'Cache-Control: no-cache' \ -H 'Connection: keep-alive' \ -H 'Content-Length: 238' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -H 'Host: account.api.here.com' \ -H 'Postman-Token: xxxxxxxxx’ \ -H 'User-Agent: PostmanRuntime/7.20.1' \ -H 'cache-control: no-cache' \ -d 'grant_type=client_credentials&oauth_consumer_key=xxxx&oauth_signature_method=HMAC-SHA256&oauth_timestamp=1576653105&oauth_nonce=xxx&oauth_version=1.0&oauth_signature=xxx’

    0 讨论(0)
  • 2020-12-12 06:11

    Sharing the CURL request after testing the token generation API on postman. Consumer key and Consumer secret are here.access.key.id and key.secret respectively. signature method : HMAC-SHA1, Version : 1.0

     curl -X POST \
      https://account.api.here.com/oauth2/token \
      -H 'Authorization: OAuth' \
      -H 'Content-Type: application/x-www-form-urlencoded' \
      -H 'Postman-Token: xxxxxxxxxxxx' \
      -H 'cache-control: no-cache' \
      -d grant_type=client_credentials
    

    0 讨论(0)
提交回复
热议问题