@@ -11,7 +11,7 @@ Welcome to the MagicbellUserClient SDK documentation. This guide will help you g
11
11
12
12
## About the API
13
13
14
- OpenAPI 3.0.3 Specification for MagicBell API.
14
+ OpenAPI 3.1.0 Specification for MagicBell API.
15
15
16
16
## Table of Contents
17
17
@@ -116,8 +116,9 @@ Below is a comprehensive example demonstrating how to authenticate and call a si
116
116
``` java
117
117
import com.magicbell.magicbelluserclient.MagicbellUserClient ;
118
118
import com.magicbell.magicbelluserclient.config.MagicbellUserClientConfig ;
119
- import com.magicbell.magicbelluserclient.models.ArrayOfMetadataApnsTokens ;
120
- import com.magicbell.magicbelluserclient.models.GetMobilePushApnsTokensParameters ;
119
+ import com.magicbell.magicbelluserclient.exceptions.ApiException ;
120
+ import com.magicbell.magicbelluserclient.models.GetInAppInboxTokensParameters ;
121
+ import com.magicbell.magicbelluserclient.models.InboxTokenResponseCollection ;
121
122
122
123
public class Main {
123
124
@@ -126,16 +127,21 @@ public class Main {
126
127
127
128
MagicbellUserClient magicbellUserClient = new MagicbellUserClient (config);
128
129
129
- GetMobilePushApnsTokensParameters requestParameters = GetMobilePushApnsTokensParameters
130
- .builder()
131
- .pageSize(8L )
132
- .pageAfter(" page[after]" )
133
- .pageBefore(" page[before]" )
130
+ GetInAppInboxTokensParameters requestParameters = GetInAppInboxTokensParameters . builder()
131
+ .limit(10L )
132
+ .startingAfter(" starting_after" )
133
+ .endingBefore(" ending_before" )
134
134
.build();
135
135
136
- ArrayOfMetadataApnsTokens response = magicbellUserClient. channels. getMobilePushApnsTokens(requestParameters);
136
+ try {
137
+ InboxTokenResponseCollection response = magicbellUserClient. channels. getInAppInboxTokens(requestParameters);
137
138
138
- System . out. println(response);
139
+ System . out. println(response);
140
+ } catch (ApiException e) {
141
+ e. printStackTrace();
142
+ }
143
+
144
+ System . exit(0 );
139
145
}
140
146
}
141
147
@@ -148,10 +154,11 @@ The SDK provides various services to interact with the API.
148
154
<details >
149
155
<summary >Below is a list of all available services with links to their detailed documentation:</summary >
150
156
151
- | Name |
152
- | :---------------------------------------------------------------------------------------------------------------------------------------- |
153
- | ChannelsService: [[ Java] ( documentation/services/ChannelsService.md )] [[ Kotlin] ( documentation/services/ChannelsService.kt.md )] |
154
- | IntegrationsService: [[ Java] ( documentation/services/IntegrationsService.md )] [[ Kotlin] ( documentation/services/IntegrationsService.kt.md )] |
157
+ | Name |
158
+ | :------------------------------------------------------------------------------------------------------------------------------------------- |
159
+ | ChannelsService: [[ Java] ( documentation/services/ChannelsService.md )] [[ Kotlin] ( documentation/services/ChannelsService.kt.md )] |
160
+ | IntegrationsService: [[ Java] ( documentation/services/IntegrationsService.md )] [[ Kotlin] ( documentation/services/IntegrationsService.kt.md )] |
161
+ | NotificationsService: [[ Java] ( documentation/services/NotificationsService.md )] [[ Kotlin] ( documentation/services/NotificationsService.kt.md )] |
155
162
156
163
</details >
157
164
@@ -164,40 +171,46 @@ The SDK includes several models that represent the data structures used in API r
164
171
165
172
| Name | Description |
166
173
| :--------------------------------------------------------------------------------------------- | :---------- |
167
- | [ ArrayOfMetadataApnsTokens ] ( documentation/models/ArrayOfMetadataApnsTokens .md ) | |
168
- | [ ApnsToken ] ( documentation/models/ApnsToken .md ) | |
169
- | [ MetadataApnsToken ] ( documentation/models/MetadataApnsToken .md ) | |
174
+ | [ InboxTokenResponseCollection ] ( documentation/models/InboxTokenResponseCollection .md ) | |
175
+ | [ InboxToken ] ( documentation/models/InboxToken .md ) | |
176
+ | [ InboxTokenResponse ] ( documentation/models/InboxTokenResponse .md ) | |
170
177
| [ DiscardResult] ( documentation/models/DiscardResult.md ) | |
171
- | [ ArrayOfMetadataExpoTokens] ( documentation/models/ArrayOfMetadataExpoTokens.md ) | |
178
+ | [ ApnsTokenCollection] ( documentation/models/ApnsTokenCollection.md ) | |
179
+ | [ ApnsTokenPayload] ( documentation/models/ApnsTokenPayload.md ) | |
180
+ | [ ApnsToken] ( documentation/models/ApnsToken.md ) | |
181
+ | [ ExpoTokenCollection] ( documentation/models/ExpoTokenCollection.md ) | |
182
+ | [ ExpoTokenPayload] ( documentation/models/ExpoTokenPayload.md ) | |
172
183
| [ ExpoToken] ( documentation/models/ExpoToken.md ) | |
173
- | [ MetadataExpoToken ] ( documentation/models/MetadataExpoToken .md ) | |
174
- | [ ArrayOfMetadataFcmTokens ] ( documentation/models/ArrayOfMetadataFcmTokens .md ) | |
184
+ | [ FcmTokenCollection ] ( documentation/models/FcmTokenCollection .md ) | |
185
+ | [ FcmTokenPayload ] ( documentation/models/FcmTokenPayload .md ) | |
175
186
| [ FcmToken] ( documentation/models/FcmToken.md ) | |
176
- | [ MetadataFcmToken ] ( documentation/models/MetadataFcmToken .md ) | |
177
- | [ ArrayOfMetadataSlackTokens ] ( documentation/models/ArrayOfMetadataSlackTokens .md ) | |
187
+ | [ SlackTokenCollection ] ( documentation/models/SlackTokenCollection .md ) | |
188
+ | [ SlackTokenPayload ] ( documentation/models/SlackTokenPayload .md ) | |
178
189
| [ SlackToken] ( documentation/models/SlackToken.md ) | |
179
- | [ MetadataSlackToken ] ( documentation/models/MetadataSlackToken .md ) | |
180
- | [ ArrayOfMetadataTeamsTokens ] ( documentation/models/ArrayOfMetadataTeamsTokens .md ) | |
190
+ | [ TeamsTokenCollection ] ( documentation/models/TeamsTokenCollection .md ) | |
191
+ | [ TeamsTokenPayload ] ( documentation/models/TeamsTokenPayload .md ) | |
181
192
| [ TeamsToken] ( documentation/models/TeamsToken.md ) | |
182
- | [ MetadataTeamsToken ] ( documentation/models/MetadataTeamsToken .md ) | |
183
- | [ ArrayOfMetadataWebPushTokens ] ( documentation/models/ArrayOfMetadataWebPushTokens .md ) | |
193
+ | [ WebPushTokenCollection ] ( documentation/models/WebPushTokenCollection .md ) | |
194
+ | [ WebPushTokenPayload ] ( documentation/models/WebPushTokenPayload .md ) | |
184
195
| [ WebPushToken] ( documentation/models/WebPushToken.md ) | |
185
- | [ MetadataWebPushToken] ( documentation/models/MetadataWebPushToken.md ) | |
186
- | [ InboxConfig] ( documentation/models/InboxConfig.md ) | |
196
+ | [ InboxConfigPayload] ( documentation/models/InboxConfigPayload.md ) | |
187
197
| [ SlackInstallation] ( documentation/models/SlackInstallation.md ) | |
188
198
| [ SlackFinishInstallResponse] ( documentation/models/SlackFinishInstallResponse.md ) | |
189
199
| [ SlackStartInstall] ( documentation/models/SlackStartInstall.md ) | |
190
200
| [ SlackStartInstallResponseContent] ( documentation/models/SlackStartInstallResponseContent.md ) | |
191
201
| [ TemplatesInstallation] ( documentation/models/TemplatesInstallation.md ) | |
192
202
| [ WebPushStartInstallationResponse] ( documentation/models/WebPushStartInstallationResponse.md ) | |
203
+ | [ NotificationCollection] ( documentation/models/NotificationCollection.md ) | |
193
204
| [ Links] ( documentation/models/Links.md ) | |
194
- | [ TokenMetadata] ( documentation/models/TokenMetadata.md ) | |
205
+ | [ Notification] ( documentation/models/Notification.md ) | |
206
+ | [ GetInAppInboxTokensParameters] ( documentation/models/GetInAppInboxTokensParameters.md ) | |
195
207
| [ GetMobilePushApnsTokensParameters] ( documentation/models/GetMobilePushApnsTokensParameters.md ) | |
196
208
| [ GetMobilePushExpoTokensParameters] ( documentation/models/GetMobilePushExpoTokensParameters.md ) | |
197
209
| [ GetMobilePushFcmTokensParameters] ( documentation/models/GetMobilePushFcmTokensParameters.md ) | |
198
210
| [ GetSlackTokensParameters] ( documentation/models/GetSlackTokensParameters.md ) | |
199
211
| [ GetTeamsTokensParameters] ( documentation/models/GetTeamsTokensParameters.md ) | |
200
212
| [ GetWebPushTokensParameters] ( documentation/models/GetWebPushTokensParameters.md ) | |
213
+ | [ ListNotificationsParameters] ( documentation/models/ListNotificationsParameters.md ) | |
201
214
202
215
</details >
203
216
0 commit comments