Skip to content

Commit 8bbcabd

Browse files
authored
chore: Rename SDK to magicbell-java-user-client (#10)
* chore: renaming lib to magicbell-java-user-client * changeset * chore: renaming artifact and groupid * chore: renaming lib * chore: rename artifact to magicbell-user-client * chore: adjust update-version script * chore: adjusting doc sync path * chore: updating name in changelog
1 parent b796dbf commit 8bbcabd

File tree

125 files changed

+769
-764
lines changed

Some content is hidden

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

125 files changed

+769
-764
lines changed

.changeset/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3-
"changelog": ["@changesets/changelog-github", { "repo": "magicbell/magicbell-java-client" }],
3+
"changelog": ["@changesets/changelog-github", { "repo": "magicbell/magicbell-java-user-client" }],
44
"commit": false,
55
"fixed": [],
66
"linked": [],

.changeset/heavy-parrots-buy.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"magicbell-java-user-client": minor
3+
---
4+
5+
Renaming library to magicbell-java-user-client

.github/sync.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
magicbell/magicbell:
22
- source: docs-dist
3-
dest: src/go/app/site/docs/mdx/03-libraries/magicbell-java-client
3+
dest: src/go/app/site/docs/mdx/03-libraries/magicbell-java-user-client

.github/workflows/regen.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
node-version: 20
2424
- uses: bahmutov/npm-install@v1
2525

26-
- name: Regen `magicbell-java-client`
26+
- name: Regen
2727
run: yarn codegen
2828
env:
2929
LIBLAB_TOKEN: ${{ secrets.LIBLAB_ACTION_TOKEN }}

.github/workflows/release-discussion.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
repo: magicbell/community
1919
category: changelog
2020
cycle: week
21-
release-prefix: magicbell-java-client
21+
release-prefix: magicbell-java-user-client
2222
env:
2323
GITHUB_TOKEN: ${{ secrets.BELLA_ACTION_TOKEN }}

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# magicbell-java-client
1+
# magicbell-java-user-client
22

33
## 0.1.3
44

README.md

+23-23
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# MagicbellJavaClient Java SDK 0.1.3
1+
# MagicbellUserClient Java SDK 0.1.3
22

3-
Welcome to the MagicbellJavaClient SDK documentation. This guide will help you get started with integrating and using the MagicbellJavaClient SDK in your project.
3+
Welcome to the MagicbellUserClient SDK documentation. This guide will help you get started with integrating and using the MagicbellUserClient SDK in your project.
44

55
[![This SDK was generated by liblab](https://public-liblab-readme-assets.s3.us-east-1.amazonaws.com/built-by-liblab-icon.svg)](https://liblab.com/?utm_source=readme)
66

@@ -11,7 +11,7 @@ Welcome to the MagicbellJavaClient SDK documentation. This guide will help you g
1111

1212
## About the API
1313

14-
OpenAPI 3.1.0 Specification for MagicBell API.
14+
OpenAPI 3.0.3 Specification for MagicBell API.
1515

1616
## Table of Contents
1717

@@ -38,16 +38,16 @@ If you use Maven, place the following within the _dependency_ tag in your `pom.x
3838

3939
```XML
4040
<dependency>
41-
<groupId>com.magicbell.client</groupId>
42-
<artifactId>magicbell-java-client</artifactId>
41+
<groupId>com.magicbell</groupId>
42+
<artifactId>magicbell-user-client</artifactId>
4343
<version>0.1.3</version>
4444
</dependency>
4545
```
4646

4747
If you use Gradle, paste the next line inside the _dependencies_ block of your `build.gradle` file:
4848

4949
```Gradle
50-
implementation group: com.magicbell.client, name: magicbell-java-client, version: 0.1.3
50+
implementation group: com.magicbell, name: magicbell-user-client, version: 0.1.3
5151
```
5252

5353
If you use JAR files, package the SDK by running the following command:
@@ -62,7 +62,7 @@ Then, add the JAR file to your project's classpath.
6262

6363
### Access Token Authentication
6464

65-
The MagicbellJavaClient API uses an Access Token for authentication.
65+
The MagicbellUserClient API uses an Access Token for authentication.
6666

6767
This token must be provided to authenticate your requests to the API.
6868

@@ -71,15 +71,15 @@ This token must be provided to authenticate your requests to the API.
7171
When you initialize the SDK, you can set the access token as follows:
7272

7373
```java
74-
import com.magicbell.client.magicbelljavaclient.MagicbellJavaClient;
75-
import com.magicbell.client.magicbelljavaclient.config.MagicbellJavaClientConfig;
74+
import com.magicbell.magicbelluserclient.MagicbellUserClient;
75+
import com.magicbell.magicbelluserclient.config.MagicbellUserClientConfig;
7676

7777
public class Main {
7878

7979
public static void main(String[] args) {
80-
MagicbellJavaClientConfig config = MagicbellJavaClientConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
80+
MagicbellUserClientConfig config = MagicbellUserClientConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
8181

82-
MagicbellJavaClient magicbellJavaClient = new MagicbellJavaClient(config);
82+
MagicbellUserClient magicbellUserClient = new MagicbellUserClient(config);
8383
}
8484
}
8585

@@ -88,22 +88,22 @@ public class Main {
8888
If you need to set or update the access token after initializing the SDK, you can use:
8989

9090
```java
91-
magicbellJavaClient.setAccessToken('YOUR_ACCESS_TOKEN');
91+
magicbellUserClient.setAccessToken('YOUR_ACCESS_TOKEN');
9292
```
9393

9494
## Setting a Custom Timeout
9595

9696
You can set a custom timeout for the SDK's HTTP requests as follows:
9797

9898
```java
99-
import com.magicbell.client.magicbelljavaclient.MagicbellJavaClient;
100-
import com.magicbell.client.magicbelljavaclient.config.MagicbellJavaClientConfig;
99+
import com.magicbell.magicbelluserclient.MagicbellUserClient;
100+
import com.magicbell.magicbelluserclient.config.MagicbellUserClientConfig;
101101

102102
public class Main {
103103

104104
public static void main(String[] args) {
105-
MagicbellJavaClientConfig config = MagicbellJavaClientConfig.builder().timeout(10000).build();
106-
MagicbellJavaClient magicbellJavaClient = new MagicbellJavaClient(config);
105+
MagicbellUserClientConfig config = MagicbellUserClientConfig.builder().timeout(10000).build();
106+
MagicbellUserClient magicbellUserClient = new MagicbellUserClient(config);
107107
}
108108
}
109109

@@ -114,17 +114,17 @@ public class Main {
114114
Below is a comprehensive example demonstrating how to authenticate and call a simple endpoint:
115115

116116
```java
117-
import com.magicbell.client.magicbelljavaclient.MagicbellJavaClient;
118-
import com.magicbell.client.magicbelljavaclient.config.MagicbellJavaClientConfig;
119-
import com.magicbell.client.magicbelljavaclient.models.ArrayOfMetadataApnsTokens;
120-
import com.magicbell.client.magicbelljavaclient.models.GetMobilePushApnsTokensParameters;
117+
import com.magicbell.magicbelluserclient.MagicbellUserClient;
118+
import com.magicbell.magicbelluserclient.config.MagicbellUserClientConfig;
119+
import com.magicbell.magicbelluserclient.models.ArrayOfMetadataApnsTokens;
120+
import com.magicbell.magicbelluserclient.models.GetMobilePushApnsTokensParameters;
121121

122122
public class Main {
123123

124124
public static void main(String[] args) {
125-
MagicbellJavaClientConfig config = MagicbellJavaClientConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
125+
MagicbellUserClientConfig config = MagicbellUserClientConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
126126

127-
MagicbellJavaClient magicbellJavaClient = new MagicbellJavaClient(config);
127+
MagicbellUserClient magicbellUserClient = new MagicbellUserClient(config);
128128

129129
GetMobilePushApnsTokensParameters requestParameters = GetMobilePushApnsTokensParameters
130130
.builder()
@@ -133,7 +133,7 @@ public class Main {
133133
.pageBefore("page[before]")
134134
.build();
135135

136-
ArrayOfMetadataApnsTokens response = magicbellJavaClient.channels.getMobilePushApnsTokens(requestParameters);
136+
ArrayOfMetadataApnsTokens response = magicbellUserClient.channels.getMobilePushApnsTokens(requestParameters);
137137

138138
System.out.println(response);
139139
}

0 commit comments

Comments
 (0)