RingCentral Engage SDK for Go
Overview
This currently provides a minimal Go SDK for RingCentral Engage Digital, formerly Dimelo:
https://www.dimelo.com
Pre-requisites
You need the following:
- RingCentral Engage Digital / Dimelo Account and the URL subdomain, e.g.
my-subdomain
in the following URL: https://my-subdomain.engagement.dimelo.com
- An API Access Token. You can retrive this at the following URL, using your own domain in place of
my-subdomain
: https://my-subdomain.engagement.dimelo.com/admin/api_access_tokens
Installation
$ go get github.com/grokify/go-ringcental-engage/...
Usage
The main SDK is in the engagedigital/engagedigital
folder. The engagedigital/engagedigitalutil
folder provides a non-autogenerated helper function to instantiate the SDK:
import("github.com/grokify/go-ringcentral-engage/engagedigital/engagedigitalutil")
func main() {
apiClient := engagedigitalutil.NewApiClient("my-subdomain", "my-access-token")
// helper function to get access to raw `*http.Client`
httpClient := apiClient.HTTPClient()
}
For information on how to use the apiClient
object, see:
engagedigital/examples
folder for usage. engagedigital/examples/simple_get
includes a simple functions for a lot of the GET
APIs.
- engagedigital/engagedigital/README.md for SDK documentation.
Documentation
engagedigital/engagedigital/README.md
Coverage
116/121 APIs - 96%
There are 127 endpoints. To count, use the following on OS-X:
$ grep ' [ ]' README.md | wc -l
Building the SDK
You won't normally need to do this unless you want to modify the SDK, like adding endpoints via the OpenAPI 2.0 / Swagger 2.0 specification.
This SDK is auto-generated from the OpenAPI 2.0 / Swagger 2.0 spec using OpenAPI Generator.
Note: This SDK uses a merged OpenAPI spec so do not edit the codegen/openapi-spec.json
file. Instead, edit files in and add files to the codegen/partial-specs
folder.
Run:
$ cd codegen
$ go run merge.go -v 3
$ sh generate.sh
$ rm -rf ../engagedigital
$ mv engagedigital ..
Credits
Thanks to the following apps for making this possible: