Skip to content

Commit

Permalink
Merge pull request #16 from sendbird/develop
Browse files Browse the repository at this point in the history
Update to 1.0.17
  • Loading branch information
jerry-jeon-sb authored Nov 10, 2023
2 parents ac4aff3 + 03b3452 commit 176250d
Show file tree
Hide file tree
Showing 410 changed files with 15,899 additions and 3,701 deletions.
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/aws.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 2 additions & 9 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

356 changes: 44 additions & 312 deletions .openapi-generator/FILES

Large diffs are not rendered by default.

53 changes: 27 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,36 +17,37 @@ import org.sendbird.client.Configuration;
import org.sendbird.client.api.UserApi;
import org.openapitools.client.model.ListUsersResponse;

class User {
ApiClient defaultClient;
String apiToken = "YOUR_API_KEY_FROM_DASHBOARD";
UserApi apiInstance;
public User(ApiClient defaultClient){
apiInstance = new UserApi(defaultClient);
}
public void listUsers(){

try {
Integer limit = 56;
String activeMode = "activated";
Boolean showBot = true;
ListUsersResponse result = apiInstance.listUsers().apiToken(apiToken).limit(limit).activeMode(activeMode).execute();
System.out.println(result);

} catch (ApiException e) {
System.err.println("Exception when calling listUsers");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();

class AppTest {
static class User {
UserApi apiInstance;
public User(ApiClient defaultClient){
apiInstance = new UserApi(defaultClient);
}
public void listUsers(){

try {
Integer limit = 56;
String activeMode = "activated";
Boolean showBot = true;
ListUsersResponse result = apiInstance.listUsers().limit(limit).activeMode(activeMode).execute();
System.out.println(result);

} catch (ApiException e) {
System.err.println("Exception when calling listUsers");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
}

class App {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api-YOUR_APP_ID_FROM_DASHBOARD.sendbird.com");
String apiToken = "YOUR_API_TOKEN";
String applicationId = "YOUR_APP_ID_FROM_DASHBOARD";
ApiClient defaultClient = Configuration.getDefaultApiClient().addDefaultHeader("Api-Token", apiToken);
defaultClient.setBasePath("https://api-" + applicationId + ".sendbird.com");
User user = new User(defaultClient);
user.listUsers();
}
Expand Down
Loading

0 comments on commit 176250d

Please sign in to comment.