locked
Where can I find client_id for Search API? RRS feed

  • Question

  • Hi,

    I'm trying to test Search API. First, I'm trying to get a token to use the service:

    curl -d -i "https://oxford-speech.cloudapp.net/token/issueToken?grant_type=client_credentials&client_id=123&client_secret=456scope=https%3A%2F%2Fspeech.platform.bing.com"

    { "statusCode": 401, "message": "Access denied due to invalid subscription key. Make sure you are subscribed to an API you are trying to call and provide the right key." }

    I have primary and secondary keys, but I can't find client_id. Can someone help?

    Tomas

    Sunday, May 3, 2015 6:26 PM

All replies

  • I don't think you need to pass a client_id and there shouldn't be such a thing. All you need are the two keys: primary and secondary.

    Friday, May 8, 2015 5:28 PM
  • Hi.

    I have tested and it is working if you use your primary key for client_secret and client_id.

    This command will return access_token:

    curl --data "grant_type=client_credentials&client_id=XXX&client_secret=XXX&scope=https://speech.platform.bing.com" -i  "https://oxford-speech.cloudapp.net/token/issueToken"

    Victor

    Friday, May 15, 2015 1:09 PM
  • Client_id can be any token that you want it to be to identify where the client for you.
    Sunday, March 27, 2016 7:32 PM