grokify / go-ringcentral-engage

RingCentral Engage Digital / Dimelo SDK for Go - https://www.dimelo.com - https://engage-api-docs.rtfd.org
MIT License
4 stars 3 forks source link

RingCentral Engage SDK for Go

Build Status Go Report Card API Coverage Docs License Stack Overflow Twitter

Overview

This currently provides a minimal Go SDK for RingCentral Engage Digital, formerly Dimelo:

https://www.dimelo.com

Pre-requisites

You need the following:

  1. RingCentral Engage Digital / Dimelo Account and the URL subdomain, e.g. my-subdomain in the following URL: https://my-subdomain.engagement.dimelo.com
  2. 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:

  1. engagedigital/examples folder for usage. engagedigital/examples/simple_get includes a simple functions for a lot of the GET APIs.
  2. 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: