Skip to content

ringcentral/ringcentral-dart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RingCentral Dart SDK.

It provides utility classes/functions for you to access RingCentral Restful API.

Features

  • Authorization
  • HTTP GET/POST/PUT/PATCH/DELETE

Getting started

Add ringcentral to your pubspec.yaml file:

dependencies:
  ringcentral: <latest_version>

Import it:

import 'package:ringcentral/ringcentral.dart';

Usage

var rc = RingCentral(
    server: env['RINGCENTRAL_SERVER_URL']!,
    clientId: env['RINGCENTRAL_CLIENT_ID'],
    clientSecret: env['RINGCENTRAL_CLIENT_SECRET'],
  );
await rc.authorize(
  username: env['RINGCENTRAL_USERNAME']!,
  extension: env['RINGCENTRAL_EXTENSION'],
  password: env['RINGCENTRAL_PASSWORD']!,
);
var r = await rc.get(endpoint: '/restapi/v1.0/account/~/extension/~');
print(r.body);

Additional information

This library is current in beta. Please evaluate the risk before using it in production.

For contributors

How to test

dart test

How to publish

dart pub publish

Releases

No releases published

Packages

No packages published

Languages