Issues getting started with of GO and CLI cdn with Windows

Hello All,

Be friendly and keep it as simple as you can for me. I used other proprietary CLIs but I am trying to get the CLI installed on my PC in windows and I am running into troubles right near the beginning of the installation process
I am following the Instructions from Genesys Developer Site so far I have:

  1. Installed Go from the Web page
  2. Then I downloaded the cdn as instructed and placed it in a file directory in my PATH

And now I don't know where to go from here (how do I get to the place where I enter my key/secret key to connect to my org and then proceed to executing the code?

I also watched the
Dev Cast but the nice gentelman was talking a bit over my head.

Please assist I can't live another day without at CLI : ) Thank you in advance for your help!!

Ok So I have had a bit more luck on my other computer (Mac) I had brew & dash already installed but I am unable to authenticate. In my terminal I have been trying to follow the prompts:
1st I entered in the gc profiles new and accept the default and mypurecloud.com Environment
2nd it ask me for an authorization grant type, I hit enter and then select client credentials. I
3rd I copy over Client ID and Client Secret hit enter
4th it ask me 'would you like to use a proxy server I say no BUT Then I get:

{
  "error": "invalid_client",
  "description": "client not found",
  "error_description": "client not found"
}

Am I supposed to be using a proxy? I am located in the US and using USWest ? Or can anyone help me out ?

Hi

No you don't need to use a proxy if you won't want to, it's completely optional. That error indicated that your credentials are wrong in some way. Here's some things to check:

  • The Region you set is the region of the org that the credentials are for not necessarily where you are. Ensure that the org you are using is in us-east-1, if not the you will need to change your region.

  • The CLI will check for environment variables before looking for a profile so I would check to see if you have these environment variables set, GENESYSCLOUD_OAUTHCLIENT_ID, GENESYSCLOUD_OAUTHCLIENT_SECRET, and GENESYSCLOUD_REGION. If you have these set the CLI will be trying to use them instead of the profile and they may not be correct. You can use this command in your terminal to check if they are set:

    echo $<environment_variable_name> # Print environment variable
    
  • You may have entered your credentials wrong when creating your profile, I know from personal experience it is easy you enter a wrong value for the secret for example. You can use this command to show your credentials to double check everything is correct:

    gc profiles get <profile_name>
    

Regards,
Declan

Thank you Declan it was the third bullet point unfortunately in my terminal there is a grey key next to my client secret and it will not let me paste into the terminal for some reason so I had to type it and I misinterpted an uppercase i for a lower case L : (

I am still stuck however I am going to try a few more things and then I will post to see if you have any other suggestions if I can't get past it. Maybe my newness to go is tripping me up or maybe because I initially set up home brew for Xcode development a while back I need to relocate what directories my terminal is working with.

so I right now I am working through some Go Modules now to try to figure out the interconnection between the go and the Genesys CLI I installed. I find it to be quite challenging as Macs don't make it easy to find where anything is locally stored. Any shortcut suggestions in the meanwhile are welcomed.

Also my org is in us-west-2 do I have to change the region ?

Hi

Yes if your org is in us-west-2 then you will need to change your environment to usw2.pure.cloud

Regards,
Declan

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.