An open API service indexing awesome lists of open source software.

https://github.com/grokify/ringcentral-sdk-csharp-simple

Simple SDK wrapper for RingCentral C# SDK (https://github.com/ringcentral/ringcentral-csharp). Need help? Post your questions to http://stackoverflow.com/ or email us at devsupport@ringcentral.com.
https://github.com/grokify/ringcentral-sdk-csharp-simple

Last synced: 9 months ago
JSON representation

Simple SDK wrapper for RingCentral C# SDK (https://github.com/ringcentral/ringcentral-csharp). Need help? Post your questions to http://stackoverflow.com/ or email us at devsupport@ringcentral.com.

Awesome Lists containing this project

README

          

# RingCentral Simple SDK for C# / .NET

[![Nuget Version][nuget-version-svg]][nuget-version-link]
[![Docs][docs-readthedocs-svg]][docs-readthedocs-link]
[![License][license-svg]][license-link]

This is a simple wrapper around the [RingCentral C# SDK](https://github.com/ringcentral/ringcentral-csharp) to make common API calls easier to access. The RingCentral SDK client object is available via the simple client and can be introduced via a dependency injection.

The code is a very early proof of concept.

## Installation

Via [NuGet](https://www.nuget.org/packages/RingCentralSimple/):

```
PM> Install-Package RingCentral
PM> Install-Package RingCentralSimple
```

## Quickstart

### Initialization

```csharp
using RingCentral;
using RingCentralSimple;
```

### Send an SMS

This can be done simply using the `SendMessage()` method which returns a `RingCentral.SDK.Http.Response` object. This assumes that the `accountId` and `extensionId` are the default ids for the authorized user.

```csharp
// Instantiate SDK
var sdk = new RingCentral.SDK.SDK("appKey", "appSecret", "serverUrl", "appName", "appVersion");
var rc = new RingCentralSimple.Client(sdk);

// Authorize User using OAuth Password Grant
rc.Sdk.GetPlatform().Authorize("username", "extension", "password", true);

// SendMessage takes the following parameters: ("fromNumber", "toNumber", "message")
var response = rc.SendMessage("+15551112222", "+15553334444", "RingCentral SMS via C#");
```

### Access RingCentral Client

The official [RingCentral C# SDK](https://github.com/ringcentral/ringcentral-csharp) is available via the `Sdk` property.

```csharp
var rc = new RingCentralSimple.Client("appKey", "appSecret", "serverUrl");
var rcsdk = rc.Sdk;
```

## License

RingCentral Simple SDK for C# is available under an MIT-style license. See the `LICENSE.txt` file for details.

RingCentral Simple SDK for C# © 2015-2016 by John Wang

[nuget-version-svg]: https://img.shields.io/nuget/v/RingCentralSimple.svg
[nuget-version-link]: https://www.nuget.org/packages/RingCentralSimple/
[downloads-svg]: https://img.shields.io/nuget/dt/RingCentralSimple.svg
[downloads-link]: https://www.nuget.org/packages/RingCentralSimple/
[docs-readthedocs-svg]: https://img.shields.io/badge/docs-readthedocs-blue.svg
[docs-readthedocs-link]: http://ringcentral-sdk-csharp-simple.readthedocs.org/
[license-svg]: https://img.shields.io/badge/license-MIT-blue.svg
[license-link]: https://github.com/grokify/ringcentral-sdk-csharp-simple/blob/master/LICENSE.txt