Jerry_Jeremiah | 2024-03-05 02:34:21 UTC | #1
I downloaded the PlatformSDK from MyPureCloud/platform-client-sdk-go and I ran make but I can't figure out what make does - it doesn't create anything in the platform-client-sdk-go directory. And it doesn't seem to do anything with the json files in that directory either. Unfortunately the readme form MyPureCloud/platform-client-sdk-go doesn't say how to build it.
How do I build the PlatformSDK?
charlie.conneely | 2024-03-05 11:44:08 UTC | #2
Hi Jerry
You can test out the local version of platform-client-sdk-go by referencing it in a go.mod file as follows:
module example.com
go 1.20
require github.com/mypurecloud/platform-client-sdk-go/v124 v124.0.0
replace github.com/mypurecloud/platform-client-sdk-go/v124 => ./relative/path/to/platform-client-sdk-go/
However, I should mention that there is no point in contributing to this repository. The entire repo is generated based on mustache templating files stored in https://github.com/purecloudlabs/platform-client-sdk-common, so any changes made to platform-client-sdk-go will be overwritten on the next version release.
You can find info about how to build the Go SDK in the readme of platform-client-sdk-common. To reference that build, your local go.mod file should look something like this:
module example.com
go 1.20
require github.com/mypurecloud/platform-client-sdk-go/v124 v124.0.0
replace github.com/mypurecloud/platform-client-sdk-go/v124 => ./relative/path/to/platform-client-sdk-common/output/purecloudgo
-Charlie
Jerome.Saint-Marc | 2024-03-05 13:12:39 UTC | #3
Hello,
But why are you trying to build the Platform Client SDK for Go? I mean if you just want to use the library, you don't need to rebuild it (I mean run a make). You just need to retrieve the package/lib with go get github.com/mypurecloud/platform-client-sdk-go/v124/platformclientv2 (v124 is the last/current version). And then reference it in your go project/code with:
import (
"github.com/mypurecloud/platform-client-sdk-go/v124/platformclientv2"
)
Regards,
Jerry_Jeremiah | 2024-03-05 20:14:42 UTC | #4
I am trying to add https://api.mypurecloud.com.au/api/v2/assistants to the Terraform Provider but it isn't on API Explorer (genesys.cloud) or on Preview APIs (genesys.cloud) or in the PlatformSDK. Genesys puts things in their GUI without making it possible to use them... See Https://api.mypurecloud.com.au/api/v2/assistants is missing - Platform API - Genesys Cloud Developer Forum for my question about why it is missing.
So anyway I need to add it to the PlatformSDK so I can add it to the Terraform Provider so that I can export the things that we made using the GUI. I appreciate all your advice about how to build the PlatformSDK - it worried me when I ran make and nothing seemed to happen.
tim.smith | 2024-03-05 20:23:27 UTC | #5
Hello, the /api/v2/assistants resource isn't missing; it's not a publicly released endpoint and should not be used outside of Genesys-built applications. You will need to use the UI to manage your configuration for assistants. You can request new features and share your use case at https://genesyscloud.ideas.aha.io/.
system | 2024-04-04 20:23:47 UTC | #6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 25000