Skip to content

Commit d8a7ec7

Browse files
Muhamad RidwanMuhamad Ridwan
authored andcommitted
feat: v2 platform sdk
1 parent 4a46a60 commit d8a7ec7

File tree

948 files changed

+46521
-130279
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

948 files changed

+46521
-130279
lines changed

.openapi-generator/FILES

Lines changed: 334 additions & 564 deletions
Large diffs are not rendered by default.

README.md-e

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
![Sendbird banner image](http://ww1.prweb.com/prfiles/2021/09/14/18371217/Sendbird_Logo_RGB_lg.png)
2+
3+
# [Sendbird C# Platform SDK](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api)
4+
5+
6+
[![link to docs](https://img.shields.io/badge/SDK-docs-green)](/docs)
7+
8+
This is a C# library that makes talking to the [Sendbird Platform API](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) easier. With this library you can extend your Sendbird integration to include advanced features like channel automation and user management.
9+
10+
# 🔥 Quick start
11+
12+
```csharp
13+
14+
using System.Diagnostics;
15+
using sendbird_platform_sdk.Api;
16+
using sendbird_platform_sdk.Client;
17+
using sendbird_platform_sdk.Model;
18+
19+
namespace Example
20+
{
21+
public class Example
22+
{
23+
public static void Main()
24+
{
25+
26+
Configuration.Default.BasePath = "https://YOUR_APP_ID_FROM_DASHBOARD.sendbird.com";
27+
var apiInstance = new UserApi(Configuration.Default);
28+
var apiToken = "YOUR_MASTER_API_TOKEN_FROM_DASHBOARD";
29+
30+
try
31+
{
32+
// List users
33+
ListUsersResponse result = apiInstance.ListUsers(apiToken, null, null, null, null, null, null, null, null, null);
34+
Debug.WriteLine(result);
35+
}
36+
catch (ApiException e)
37+
{
38+
Debug.Print("Exception when calling UserApi.ListUsers: " + e.Message);
39+
Debug.Print("Status Code: " + e.ErrorCode);
40+
Debug.Print(e.StackTrace);
41+
}
42+
43+
}
44+
}
45+
}
46+
47+
```
48+
49+
# ⚒️ Prerequisite
50+
In order to make requests with this SDK you will need you master API token. This can be found through the [Sendbird dashboard](https://dashboard.sendbird.com/). Each app you create in Sendbird has its own master api token. These tokens can be found in Settings > Application > General.
51+
52+
![how to find you api token](https://i.imgur.com/0YMKtpX.png)
53+
54+
## 💻 Requirements
55+
56+
- .NET 4.0 or later
57+
- Windows Phone 7.1 (Mango)
58+
59+
## ⚙️ Installation
60+
61+
Run the following command to generate the DLL
62+
63+
- [Mac/Linux] `/bin/sh build.sh`
64+
- [Windows] `build.bat`
65+
66+
67+
# 🗃️ Documentation
68+
All the documentation for this project lives in the /docs directory of this repo.
69+
70+
##### Helpful links
71+
72+
| | Documentation |
73+
| ----------- | ----------- |
74+
| Announcement | [docs/AnnouncementApi.md](docs/AnnouncementApi.md)|
75+
| Application | [docs/ApplicationApi.md](docs/ApplicationApi.md) |
76+
| Bot | [docs/BotApi.md](docs/BotApi.md) |
77+
| GroupChannel | [docs/GroupChannelApi.md](docs/GroupChannelApi.md) |
78+
| Message | [docs/MessageApi.md](docs/MessageApi.md) |
79+
| OpenChannel | [docs/OpenChannelApi.md ](docs/OpenChannelApi.md) |
80+
| User | [docs/UserApi.md](docs/UserApi.md) |
81+
| Webhooks | [docs/WebhooksApi.md](docs/WebhooksApi.md) |
82+

docs/AcceptAnInvitationRequest.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# sendbird_platform_sdk.Model.AcceptAnInvitationRequest
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**AccessCode** | **string** | | [optional]
9+
**UserId** | **string** | |
10+
11+
[[Back to Model list]](../README.md#documentation-for-models)
12+
[[Back to API list]](../README.md#documentation-for-api-endpoints)
13+
[[Back to README]](../README.md)
14+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
# sendbird_platform_sdk.Model.AddARegistrationOrDeviceTokenRequest
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**ApnsDeviceToken** | **string** | | [optional]
9+
**GcmRegToken** | **string** | | [optional]
10+
**HuaweiDeviceToken** | **string** | | [optional]
11+
12+
[[Back to Model list]](../README.md#documentation-for-models)
13+
[[Back to API list]](../README.md#documentation-for-api-endpoints)
14+
[[Back to README]](../README.md)
15+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
# sendbird_platform_sdk.Model.AddARegistrationOrDeviceTokenResponse
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**Token** | **string** | | [optional]
9+
**Type** | **string** | | [optional]
10+
**User** | [**SendbirdBasicUserInfo**](SendbirdBasicUserInfo.md) | | [optional]
11+
12+
[[Back to Model list]](../README.md#documentation-for-models)
13+
[[Back to API list]](../README.md#documentation-for-api-endpoints)
14+
[[Back to README]](../README.md)
15+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
# sendbird_platform_sdk.Model.AddExtraDataToAMessageRequest
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**SortedMetaarray** | [**List<SendbirdSortedMetaarrayInner>**](SendbirdSortedMetaarrayInner.md) | |
9+
10+
[[Back to Model list]](../README.md#documentation-for-models)
11+
[[Back to API list]](../README.md#documentation-for-api-endpoints)
12+
[[Back to README]](../README.md)
13+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
# sendbird_platform_sdk.Model.AddExtraDataToAMessageResponse
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**SortedMetaarray** | [**List<SendbirdSortedMetaarrayInner>**](SendbirdSortedMetaarrayInner.md) | | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models)
11+
[[Back to API list]](../README.md#documentation-for-api-endpoints)
12+
[[Back to README]](../README.md)
13+

0 commit comments

Comments
 (0)