ringcentral 0.1.1 copy "ringcentral: ^0.1.1" to clipboard
ringcentral: ^0.1.1 copied to clipboard

RingCentral SDK for Dart language. It allows developers to invoke RingCentral Platform API. You can do a couple of things with this API, like sending SMS, downloading call logs, monitoring your co-wor [...]

example/ringcentral_example.dart

import 'dart:io';
import 'package:ringcentral/ringcentral.dart';

var env = Platform.environment;

void main() async {
  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);
  await rc.refresh();
  r = await rc.get(endpoint: '/restapi/v1.0/account/~/extension/~');
  print(r.body);
  r = await rc.revoke();
  print(r.statusCode);
}
3
likes
130
points
29
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

RingCentral SDK for Dart language. It allows developers to invoke RingCentral Platform API. You can do a couple of things with this API, like sending SMS, downloading call logs, monitoring your co-workers presence...etc.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

http

More

Packages that depend on ringcentral