Coder Social home page Coder Social logo

gdms's Introduction

GDMS

PHP SDK for the Grandstream Device Management System API

Background

This is a simple SDK for using the GDMS API (Grandstream Device Management System API).

The Grandstream Device Management System is a service provided by Grandstream Networks, Inc. that allows VoIP administrators to manage connected VoIP devices, such as HT 8xx series ATAs (analog telephone adapters). The functionality provided by GDMS is quite nice and adds a lot of value to the Grandstream hardware offering.

Grandstream provides an API for GDMS which developers can use to automate interfacing with the GDMS. Unfortunately, the API is quite cryptic and anything but intuitive to use, and their documentation is rather confusing and leaves a lot to be desired. For starters:

  • Multiple sets of keys (secrets, passwords) are required to use the API
  • An access token needs to be obtained before the API itself can be used, for each session
  • Some of the request formats are inconsistent
  • Certain parts of requests are hashed, sometimes multiple times
  • Each request needs to have a calculated signature, calculated in a special way

In other words, it's probably among the most arcane APIs that any developer will encounter today. The complexity of the GDMS API has made it difficult for businesses and organizations interested in using the GDMS API to utilize it and benefit from the integration and capabilities provided by GDMS.

Fear not, however! There is a solution: for the past few months, with support from Grandstream themselves, we have been able to develop a simple SDK that can be used to interface with the GDMS API. This takes the pain out of using the GDMS API so that you can focus on your application instead, not the confusing interface of the GDMS API.

Now, you too can get started with using the GDMS API in just a few simple steps.

Note that this project is not affiliated in any way with Grandstream Networks, Inc.

Usage

Using the GDMS SDK is very simple. All you need to do is download GDMS.php from this repo and include it in your project, like so:

require('GDMS.php');

From there, you can create a new GDMS class and make API calls using the SDK interface.

Generally, responses returned from SDK functions are not modified in any way, so they reflect responses as documented in the GDMS API documentation. The philosophy of this SDK is to make it easy to make GDMS requests and then to let the user deal with the responses.

For example usage, please take a look at SampleGDMSClient.php to see how this SDK can be used.

Contributions & Bugs

Currently, many of the most common operations are included, but not everything exists in the SDK yet. Contributions to add missing operations are welcome!

If you find a bug with this SDK, please report a new issue.

gdms's People

Contributors

interlinked1 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.