Skip to content

sendbird/sendbird-platform-sdk-csharp

Repository files navigation

Sendbird banner image

link to docs

This is a C# library that makes talking to the Sendbird Platform API easier. With this library you can extend your Sendbird integration to include advanced features like channel automation and user management.

🔥 Quick start

using System.Diagnostics;
using sendbird_platform_sdk.Api;
using sendbird_platform_sdk.Client;
using sendbird_platform_sdk.Model;

namespace Example
{
    public class Example
    {
        public static void Main()
        {

            Configuration.Default.BasePath = "https://YOUR_APP_ID_FROM_DASHBOARD.sendbird.com";
            var apiInstance = new UserApi(Configuration.Default);
            var apiToken = "YOUR_MASTER_API_TOKEN_FROM_DASHBOARD";

            try
            {
                // List users
                ListUsersResponse result = apiInstance.ListUsers(apiToken, null, null, null, null, null, null, null, null, null);
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling UserApi.ListUsers: " + e.Message);
                Debug.Print("Status Code: " + e.ErrorCode);
                Debug.Print(e.StackTrace);
            }

        }
    }
}

⚒️ Prerequisite

In order to make requests with this SDK you will need you master API token. This can be found through the Sendbird dashboard. Each app you create in Sendbird has its own master api token. These tokens can be found in Settings > Application > General.

how to find you api token

💻 Requirements

  • .NET 4.0 or later
  • Windows Phone 7.1 (Mango)

⚙️ Installation

Run the following command to generate the DLL

  • [Mac/Linux] /bin/sh build.sh
  • [Windows] build.bat

🗃️ Documentation

All the documentation for this project lives in the /docs directory of this repo.

Helpful links
Documentation
Announcement docs/AnnouncementApi.md
Application docs/ApplicationApi.md
Bot docs/BotApi.md
GroupChannel docs/GroupChannelApi.md
Message docs/MessageApi.md
OpenChannel docs/OpenChannelApi.md
User docs/UserApi.md
Webhooks docs/WebhooksApi.md

About

Sendbird Platform SDK for C#

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages