Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  How to get token type and token access

    Posted 09-05-2022 06:11
    No replies, thread closed.
    Dears I wondering about Data Integration I created an integration with azure using Oauth protocol and I got successes in it and I was able to view the returned response, 
    Now my question is how to use the returned data from this request such as (token_type, access_token) as I tried to define a new data action and insert the following parameters 

    inside its headers $ { authResponse.token_type } $ { authResponse.access_token } and its not work out , could any one tell how I can call this value inside the second request, A

    little bit thing to mentioned here that I tried to make request from postman to get the access token and its type and Once I coped it to the second data action headers its work out..

    Kindly find the attached for more information.
    #ArchitectureandDesign
    #Integrations

    ------------------------------
    Mohannad haddad
    Fourth Dimension Systems LLC
    ------------------------------


  • 2.  RE: How to get token type and token access

    Posted 09-06-2022 11:20
    No replies, thread closed.
    Mohannad,

    If you are wanting to call a Genesys Cloud API from a Data Action, then please use a Genesys Cloud Data Action: https://help.mypurecloud.com/articles/about-genesys-cloud-data-actions-integration/.  That specific type of Data Action is designed to obtain a Genesys Cloud OAuth access token and use it across API requests.  It makes things much easier than managing the OAuth flow yourself.

    ------------------------------
    Jim Crespino
    Senior Director, Developer Evangelism
    Genesys
    https://developer.genesys.com
    ------------------------------



  • 3.  RE: How to get token type and token access

    Posted 09-07-2022 07:42
    No replies, thread closed.
    Dear Jim 

    Thank you for your response, 

     I would like to tell you that I followed steps that mentioned in genesys cloud resource by adding a web service integration then define the necessary information for Oauth after that genesys by default will create a default action to obtain the Access Token type , Token value as Mentioned in the following  snip
    As you can see now once I run the above data-action I got the following results 

    Now after I got success in the above I'm going to craete another data action to fetch data from endpoint api or update endpoint for this action it will ask me to pass two parameters (Token_type, Token_access) my question is how I can pass this parameters from the "Custom Auth Data Action "
     


    ------------------------------
    Mohannad haddad
    Fourth Dimension Systems LLC
    ------------------------------



  • 4.  RE: How to get token type and token access

    Posted 09-07-2022 11:12
    No replies, thread closed.
    Mohannad,

    To be clear, if you are calling Genesys Cloud APIs then I would suggest NOT to use the generic "Web Service Data Actions".  Instead go to Admin->Integrations, click on "+ Integrations" and install the "Genesys Cloud Data Actions" which is a different type of data action integration that is specifically designed to be used with Genesys Cloud APIs.  It will work much better for your needs and won't require you to get, maintain, and reuse an access token as the underlying integration will take care of all of that for you.

    ------------------------------
    Jim Crespino
    Senior Director, Developer Evangelism
    Genesys
    https://developer.genesys.com
    ------------------------------