peal 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/NOTICE +4 -0
- data/README.md +5 -4
- data/lib/peal/models/api_key.rb +11 -23
- data/lib/peal/models/membership.rb +11 -23
- data/lib/peal/models/new_api_key.rb +15 -23
- data/lib/peal/models/permission.rb +66 -0
- data/lib/peal/version.rb +1 -1
- data/lib/peal.rb +1 -0
- metadata +3 -220
- data/Gemfile +0 -9
- data/Gemfile.lock +0 -136
- data/Rakefile +0 -10
- data/docs/AlreadyMemberEncoded.md +0 -18
- data/docs/AltTextTooLongEncoded.md +0 -20
- data/docs/AnalyticsApi.md +0 -155
- data/docs/AnalyticsSummary.md +0 -30
- data/docs/ApiKey.md +0 -28
- data/docs/ApiKeyNotFoundEncoded.md +0 -18
- data/docs/ApiKeysApi.md +0 -220
- data/docs/ApiKeysRevoke404Response.md +0 -18
- data/docs/AssistantAction.md +0 -24
- data/docs/AssistantActionAnyOf.md +0 -20
- data/docs/AssistantActionAnyOf1.md +0 -20
- data/docs/AssistantActionAnyOf2.md +0 -20
- data/docs/AssistantActionAnyOf3.md +0 -18
- data/docs/AssistantApi.md +0 -149
- data/docs/AssistantFailedEncoded.md +0 -20
- data/docs/AssistantInputRejectedEncoded.md +0 -22
- data/docs/AssistantQuotaExceededEncoded.md +0 -22
- data/docs/AssistantStatus.md +0 -26
- data/docs/AssistantTone.md +0 -15
- data/docs/AssistantUnavailableEncoded.md +0 -18
- data/docs/AttemptResult.md +0 -15
- data/docs/Authorization.md +0 -18
- data/docs/Billing.md +0 -28
- data/docs/BillingApi.md +0 -77
- data/docs/BillingSubscription.md +0 -24
- data/docs/Channel.md +0 -30
- data/docs/ChannelCannotPostEncoded.md +0 -20
- data/docs/ChannelMetrics.md +0 -30
- data/docs/ChannelNotFoundEncoded.md +0 -18
- data/docs/ChannelOptions.md +0 -20
- data/docs/ChannelStatus.md +0 -20
- data/docs/ChannelStatusAnyOf.md +0 -18
- data/docs/ChannelStatusAnyOf1.md +0 -18
- data/docs/ChannelStatusAnyOf2.md +0 -20
- data/docs/ChannelsApi.md +0 -512
- data/docs/ChannelsCompleteConnect404Response.md +0 -18
- data/docs/ChoosableAccount.md +0 -26
- data/docs/ChooseAccounts.md +0 -20
- data/docs/ConnectCallback.md +0 -24
- data/docs/ConnectChannel.md +0 -20
- data/docs/ConnectFailedEncoded.md +0 -20
- data/docs/ConnectFailureReason.md +0 -15
- data/docs/ConnectOutcome.md +0 -26
- data/docs/ConnectOutcomeAnyOf.md +0 -20
- data/docs/ConnectOutcomeAnyOf1.md +0 -24
- data/docs/ConnectablePlatforms.md +0 -18
- data/docs/ContentViolation.md +0 -54
- data/docs/ContentViolationAnyOf.md +0 -18
- data/docs/ContentViolationAnyOf1.md +0 -20
- data/docs/ContentViolationAnyOf10.md +0 -26
- data/docs/ContentViolationAnyOf11.md +0 -22
- data/docs/ContentViolationAnyOf12.md +0 -26
- data/docs/ContentViolationAnyOf13.md +0 -26
- data/docs/ContentViolationAnyOf14.md +0 -26
- data/docs/ContentViolationAnyOf15.md +0 -26
- data/docs/ContentViolationAnyOf16.md +0 -22
- data/docs/ContentViolationAnyOf17.md +0 -26
- data/docs/ContentViolationAnyOf18.md +0 -28
- data/docs/ContentViolationAnyOf19.md +0 -28
- data/docs/ContentViolationAnyOf2.md +0 -20
- data/docs/ContentViolationAnyOf20.md +0 -28
- data/docs/ContentViolationAnyOf21.md +0 -28
- data/docs/ContentViolationAnyOf22.md +0 -30
- data/docs/ContentViolationAnyOf23.md +0 -32
- data/docs/ContentViolationAnyOf24.md +0 -32
- data/docs/ContentViolationAnyOf24Maximum.md +0 -15
- data/docs/ContentViolationAnyOf25.md +0 -28
- data/docs/ContentViolationAnyOf3.md +0 -24
- data/docs/ContentViolationAnyOf4.md +0 -24
- data/docs/ContentViolationAnyOf5.md +0 -28
- data/docs/ContentViolationAnyOf6.md +0 -24
- data/docs/ContentViolationAnyOf7.md +0 -22
- data/docs/ContentViolationAnyOf8.md +0 -28
- data/docs/ContentViolationAnyOf9.md +0 -24
- data/docs/CreatedApiKey.md +0 -20
- data/docs/DatabaseUnavailableEncoded.md +0 -18
- data/docs/DraftPage.md +0 -20
- data/docs/EffectHttpApiErrorBadRequestEncoded.md +0 -18
- data/docs/EngagementDay.md +0 -26
- data/docs/FailureReason.md +0 -15
- data/docs/ForbiddenEncoded.md +0 -18
- data/docs/InvalidDateRangeEncoded.md +0 -18
- data/docs/InvalidTimeRangeEncoded.md +0 -18
- data/docs/InvalidTimeZoneEncoded.md +0 -20
- data/docs/Invitation.md +0 -28
- data/docs/InvitationNotFoundEncoded.md +0 -18
- data/docs/InvitationsApi.md +0 -220
- data/docs/InvitationsCreate409Response.md +0 -18
- data/docs/InvitationsRevoke404Response.md +0 -18
- data/docs/MarkNoticesRead.md +0 -18
- data/docs/Me.md +0 -22
- data/docs/MeUser.md +0 -28
- data/docs/Media.md +0 -40
- data/docs/MediaApi.md +0 -516
- data/docs/MediaAttachment.md +0 -20
- data/docs/MediaContentType.md +0 -15
- data/docs/MediaCreate422Response.md +0 -28
- data/docs/MediaDescription.md +0 -18
- data/docs/MediaDimensions.md +0 -20
- data/docs/MediaGet404Response.md +0 -18
- data/docs/MediaInUseEncoded.md +0 -20
- data/docs/MediaKind.md +0 -15
- data/docs/MediaNotFoundEncoded.md +0 -18
- data/docs/MediaPage.md +0 -20
- data/docs/MediaStatus.md +0 -22
- data/docs/MediaStatusAnyOf.md +0 -18
- data/docs/MediaStatusAnyOf1.md +0 -20
- data/docs/MediaStatusAnyOf2.md +0 -18
- data/docs/MediaStatusAnyOf3.md +0 -20
- data/docs/MediaStoreUnavailableEncoded.md +0 -18
- data/docs/MediaTooLargeEncoded.md +0 -24
- data/docs/MediaUsage.md +0 -20
- data/docs/MembersApi.md +0 -77
- data/docs/Membership.md +0 -26
- data/docs/MetricTotals.md +0 -28
- data/docs/MetricsSnapshot.md +0 -20
- data/docs/NewApiKey.md +0 -22
- data/docs/NewInvitation.md +0 -20
- data/docs/NewUpload.md +0 -22
- data/docs/NonFiniteNumber.md +0 -15
- data/docs/Notice.md +0 -26
- data/docs/NoticeChannel.md +0 -20
- data/docs/NoticeEvent.md +0 -28
- data/docs/NoticeEventAnyOf.md +0 -24
- data/docs/NoticeEventAnyOf1.md +0 -24
- data/docs/NoticeEventAnyOf2.md +0 -22
- data/docs/NoticeEventAnyOf3.md +0 -20
- data/docs/NoticeEventAnyOf4.md +0 -22
- data/docs/NoticePage.md +0 -20
- data/docs/NoticesApi.md +0 -285
- data/docs/NotificationPreferences.md +0 -20
- data/docs/NotificationPreferencesApi.md +0 -144
- data/docs/NotificationPreferencesChange.md +0 -20
- data/docs/NotificationPreferencesChangeEmail.md +0 -24
- data/docs/NotificationPreferencesEmail.md +0 -24
- data/docs/PaidPlan.md +0 -15
- data/docs/PeriodUsage.md +0 -20
- data/docs/Plan.md +0 -15
- data/docs/PlanAllowances.md +0 -24
- data/docs/PlanLimit.md +0 -15
- data/docs/PlanLimitReachedEncoded.md +0 -22
- data/docs/PlanOffer.md +0 -20
- data/docs/Platform.md +0 -15
- data/docs/PlatformUnreachableEncoded.md +0 -18
- data/docs/Post.md +0 -30
- data/docs/PostAnalytics.md +0 -20
- data/docs/PostContent.md +0 -22
- data/docs/PostContentInvalidEncoded.md +0 -20
- data/docs/PostDraft.md +0 -22
- data/docs/PostMetrics.md +0 -26
- data/docs/PostNotFoundEncoded.md +0 -18
- data/docs/PostOutcome.md +0 -15
- data/docs/PostSchedule.md +0 -20
- data/docs/PostStatus.md +0 -15
- data/docs/PostStatusConflictEncoded.md +0 -20
- data/docs/PostTarget.md +0 -36
- data/docs/PostTargetStatus.md +0 -15
- data/docs/PostsApi.md +0 -960
- data/docs/PostsCreate422Response.md +0 -24
- data/docs/PostsGet404Response.md +0 -18
- data/docs/PostsRepost409Response.md +0 -20
- data/docs/PostsSchedule422Response.md +0 -26
- data/docs/PreparedUpload.md +0 -20
- data/docs/ProbeState.md +0 -15
- data/docs/PublicationAttempt.md +0 -30
- data/docs/RejectionReason.md +0 -15
- data/docs/Role.md +0 -15
- data/docs/ScheduleInPastEncoded.md +0 -18
- data/docs/SchedulePost.md +0 -22
- data/docs/SessionApi.md +0 -74
- data/docs/SignedRequest.md +0 -22
- data/docs/SubscriptionStatus.md +0 -15
- data/docs/Suggestion.md +0 -22
- data/docs/SuggestionAnyOf.md +0 -20
- data/docs/SuggestionAnyOf1.md +0 -20
- data/docs/SuggestionRequest.md +0 -20
- data/docs/SystemApi.md +0 -129
- data/docs/TargetConfirmation.md +0 -20
- data/docs/TargetConfirmationAnyOf.md +0 -20
- data/docs/TargetConfirmationAnyOf1.md +0 -18
- data/docs/TargetMetrics.md +0 -32
- data/docs/TargetOptions.md +0 -48
- data/docs/TargetStatusConflictEncoded.md +0 -20
- data/docs/TextOverride.md +0 -20
- data/docs/TextUnit.md +0 -15
- data/docs/TikTokAccount.md +0 -20
- data/docs/TikTokAccountPosting.md +0 -22
- data/docs/TikTokAccountPostingAnyOf.md +0 -20
- data/docs/TikTokAccountPostingAnyOf1.md +0 -20
- data/docs/TikTokBlock.md +0 -15
- data/docs/TikTokCreator.md +0 -32
- data/docs/TikTokOptions.md +0 -34
- data/docs/TikTokPrivacyLevel.md +0 -15
- data/docs/TiktokApi.md +0 -79
- data/docs/TooManyInvitationsEncoded.md +0 -18
- data/docs/TopPost.md +0 -30
- data/docs/TranslationLanguage.md +0 -15
- data/docs/UnauthenticatedEncoded.md +0 -18
- data/docs/UnconfirmedReason.md +0 -15
- data/docs/UnknownChannelsEncoded.md +0 -20
- data/docs/UnknownMediaEncoded.md +0 -20
- data/docs/UnreadNotices.md +0 -18
- data/docs/UnsupportedMediaTypeEncoded.md +0 -20
- data/docs/UploadIncompleteEncoded.md +0 -18
- data/docs/UploadPart.md +0 -22
- data/docs/UploadRejectedEncoded.md +0 -20
- data/docs/UploadTarget.md +0 -26
- data/docs/UploadTargetAnyOf.md +0 -22
- data/docs/UploadTargetAnyOf1.md +0 -24
- data/docs/Usage.md +0 -24
- data/docs/WorkspaceMember.md +0 -26
- data/docs/WorkspaceNotFoundEncoded.md +0 -18
- data/docs/YouTubeOptions.md +0 -32
- data/docs/YouTubePrivacy.md +0 -15
- data/peal.gemspec +0 -41
- data/project.json +0 -17
data/docs/NoticeEventAnyOf4.md
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# Peal::NoticeEventAnyOf4
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **_tag** | **String** | | |
|
|
8
|
-
| **channel** | [**NoticeChannel**](NoticeChannel.md) | | |
|
|
9
|
-
| **expires_at** | **String** | | |
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```ruby
|
|
14
|
-
require 'peal'
|
|
15
|
-
|
|
16
|
-
instance = Peal::NoticeEventAnyOf4.new(
|
|
17
|
-
_tag: null,
|
|
18
|
-
channel: null,
|
|
19
|
-
expires_at: null
|
|
20
|
-
)
|
|
21
|
-
```
|
|
22
|
-
|
data/docs/NoticePage.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Peal::NoticePage
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **items** | [**Array<Notice>**](Notice.md) | | |
|
|
8
|
-
| **next_cursor** | **String** | | |
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
require 'peal'
|
|
14
|
-
|
|
15
|
-
instance = Peal::NoticePage.new(
|
|
16
|
-
items: null,
|
|
17
|
-
next_cursor: null
|
|
18
|
-
)
|
|
19
|
-
```
|
|
20
|
-
|
data/docs/NoticesApi.md
DELETED
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
# Peal::NoticesApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://app.peal.social*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**notices_list**](NoticesApi.md#notices_list) | **GET** /api/me/notices | List notices |
|
|
8
|
-
| [**notices_mark_all_read**](NoticesApi.md#notices_mark_all_read) | **POST** /api/me/notices/read-all | Mark all notices read |
|
|
9
|
-
| [**notices_mark_read**](NoticesApi.md#notices_mark_read) | **POST** /api/me/notices/read | Mark notices read |
|
|
10
|
-
| [**notices_unread**](NoticesApi.md#notices_unread) | **GET** /api/me/notices/unread | Count unread notices |
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## notices_list
|
|
14
|
-
|
|
15
|
-
> <NoticePage> notices_list(opts)
|
|
16
|
-
|
|
17
|
-
List notices
|
|
18
|
-
|
|
19
|
-
Lists the user's notices, newest first, 20 a page unless `limit` (at most 100) says otherwise. Pass the page's `nextCursor` as `cursor` for the next one. Each notice is data, for the client to write in the reader's language.
|
|
20
|
-
|
|
21
|
-
### Examples
|
|
22
|
-
|
|
23
|
-
```ruby
|
|
24
|
-
require 'time'
|
|
25
|
-
require 'peal'
|
|
26
|
-
# setup authorization
|
|
27
|
-
Peal.configure do |config|
|
|
28
|
-
# Configure Bearer authorization: bearer
|
|
29
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
api_instance = Peal::NoticesApi.new
|
|
33
|
-
opts = {
|
|
34
|
-
cursor: 'cursor_example', # String |
|
|
35
|
-
limit: 'limit_example' # String |
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
begin
|
|
39
|
-
# List notices
|
|
40
|
-
result = api_instance.notices_list(opts)
|
|
41
|
-
p result
|
|
42
|
-
rescue Peal::ApiError => e
|
|
43
|
-
puts "Error when calling NoticesApi->notices_list: #{e}"
|
|
44
|
-
end
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
#### Using the notices_list_with_http_info variant
|
|
48
|
-
|
|
49
|
-
This returns an Array which contains the response data, status code and headers.
|
|
50
|
-
|
|
51
|
-
> <Array(<NoticePage>, Integer, Hash)> notices_list_with_http_info(opts)
|
|
52
|
-
|
|
53
|
-
```ruby
|
|
54
|
-
begin
|
|
55
|
-
# List notices
|
|
56
|
-
data, status_code, headers = api_instance.notices_list_with_http_info(opts)
|
|
57
|
-
p status_code # => 2xx
|
|
58
|
-
p headers # => { ... }
|
|
59
|
-
p data # => <NoticePage>
|
|
60
|
-
rescue Peal::ApiError => e
|
|
61
|
-
puts "Error when calling NoticesApi->notices_list_with_http_info: #{e}"
|
|
62
|
-
end
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### Parameters
|
|
66
|
-
|
|
67
|
-
| Name | Type | Description | Notes |
|
|
68
|
-
| ---- | ---- | ----------- | ----- |
|
|
69
|
-
| **cursor** | **String** | | [optional] |
|
|
70
|
-
| **limit** | **String** | | [optional] |
|
|
71
|
-
|
|
72
|
-
### Return type
|
|
73
|
-
|
|
74
|
-
[**NoticePage**](NoticePage.md)
|
|
75
|
-
|
|
76
|
-
### Authorization
|
|
77
|
-
|
|
78
|
-
[bearer](../README.md#bearer)
|
|
79
|
-
|
|
80
|
-
### HTTP request headers
|
|
81
|
-
|
|
82
|
-
- **Content-Type**: Not defined
|
|
83
|
-
- **Accept**: application/json
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
## notices_mark_all_read
|
|
87
|
-
|
|
88
|
-
> <UnreadNotices> notices_mark_all_read
|
|
89
|
-
|
|
90
|
-
Mark all notices read
|
|
91
|
-
|
|
92
|
-
Marks every notice of the user read.
|
|
93
|
-
|
|
94
|
-
### Examples
|
|
95
|
-
|
|
96
|
-
```ruby
|
|
97
|
-
require 'time'
|
|
98
|
-
require 'peal'
|
|
99
|
-
# setup authorization
|
|
100
|
-
Peal.configure do |config|
|
|
101
|
-
# Configure Bearer authorization: bearer
|
|
102
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
103
|
-
end
|
|
104
|
-
|
|
105
|
-
api_instance = Peal::NoticesApi.new
|
|
106
|
-
|
|
107
|
-
begin
|
|
108
|
-
# Mark all notices read
|
|
109
|
-
result = api_instance.notices_mark_all_read
|
|
110
|
-
p result
|
|
111
|
-
rescue Peal::ApiError => e
|
|
112
|
-
puts "Error when calling NoticesApi->notices_mark_all_read: #{e}"
|
|
113
|
-
end
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
#### Using the notices_mark_all_read_with_http_info variant
|
|
117
|
-
|
|
118
|
-
This returns an Array which contains the response data, status code and headers.
|
|
119
|
-
|
|
120
|
-
> <Array(<UnreadNotices>, Integer, Hash)> notices_mark_all_read_with_http_info
|
|
121
|
-
|
|
122
|
-
```ruby
|
|
123
|
-
begin
|
|
124
|
-
# Mark all notices read
|
|
125
|
-
data, status_code, headers = api_instance.notices_mark_all_read_with_http_info
|
|
126
|
-
p status_code # => 2xx
|
|
127
|
-
p headers # => { ... }
|
|
128
|
-
p data # => <UnreadNotices>
|
|
129
|
-
rescue Peal::ApiError => e
|
|
130
|
-
puts "Error when calling NoticesApi->notices_mark_all_read_with_http_info: #{e}"
|
|
131
|
-
end
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
### Parameters
|
|
135
|
-
|
|
136
|
-
This endpoint does not need any parameter.
|
|
137
|
-
|
|
138
|
-
### Return type
|
|
139
|
-
|
|
140
|
-
[**UnreadNotices**](UnreadNotices.md)
|
|
141
|
-
|
|
142
|
-
### Authorization
|
|
143
|
-
|
|
144
|
-
[bearer](../README.md#bearer)
|
|
145
|
-
|
|
146
|
-
### HTTP request headers
|
|
147
|
-
|
|
148
|
-
- **Content-Type**: Not defined
|
|
149
|
-
- **Accept**: application/json
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
## notices_mark_read
|
|
153
|
-
|
|
154
|
-
> <UnreadNotices> notices_mark_read(mark_notices_read)
|
|
155
|
-
|
|
156
|
-
Mark notices read
|
|
157
|
-
|
|
158
|
-
Marks up to 100 of the user's notices read, and answers with how many stay unread. Ids that name none of the user's notices, and notices already read, are left as they are.
|
|
159
|
-
|
|
160
|
-
### Examples
|
|
161
|
-
|
|
162
|
-
```ruby
|
|
163
|
-
require 'time'
|
|
164
|
-
require 'peal'
|
|
165
|
-
# setup authorization
|
|
166
|
-
Peal.configure do |config|
|
|
167
|
-
# Configure Bearer authorization: bearer
|
|
168
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
169
|
-
end
|
|
170
|
-
|
|
171
|
-
api_instance = Peal::NoticesApi.new
|
|
172
|
-
mark_notices_read = Peal::MarkNoticesRead.new({ids: ['ids_example']}) # MarkNoticesRead |
|
|
173
|
-
|
|
174
|
-
begin
|
|
175
|
-
# Mark notices read
|
|
176
|
-
result = api_instance.notices_mark_read(mark_notices_read)
|
|
177
|
-
p result
|
|
178
|
-
rescue Peal::ApiError => e
|
|
179
|
-
puts "Error when calling NoticesApi->notices_mark_read: #{e}"
|
|
180
|
-
end
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
#### Using the notices_mark_read_with_http_info variant
|
|
184
|
-
|
|
185
|
-
This returns an Array which contains the response data, status code and headers.
|
|
186
|
-
|
|
187
|
-
> <Array(<UnreadNotices>, Integer, Hash)> notices_mark_read_with_http_info(mark_notices_read)
|
|
188
|
-
|
|
189
|
-
```ruby
|
|
190
|
-
begin
|
|
191
|
-
# Mark notices read
|
|
192
|
-
data, status_code, headers = api_instance.notices_mark_read_with_http_info(mark_notices_read)
|
|
193
|
-
p status_code # => 2xx
|
|
194
|
-
p headers # => { ... }
|
|
195
|
-
p data # => <UnreadNotices>
|
|
196
|
-
rescue Peal::ApiError => e
|
|
197
|
-
puts "Error when calling NoticesApi->notices_mark_read_with_http_info: #{e}"
|
|
198
|
-
end
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
### Parameters
|
|
202
|
-
|
|
203
|
-
| Name | Type | Description | Notes |
|
|
204
|
-
| ---- | ---- | ----------- | ----- |
|
|
205
|
-
| **mark_notices_read** | [**MarkNoticesRead**](MarkNoticesRead.md) | | |
|
|
206
|
-
|
|
207
|
-
### Return type
|
|
208
|
-
|
|
209
|
-
[**UnreadNotices**](UnreadNotices.md)
|
|
210
|
-
|
|
211
|
-
### Authorization
|
|
212
|
-
|
|
213
|
-
[bearer](../README.md#bearer)
|
|
214
|
-
|
|
215
|
-
### HTTP request headers
|
|
216
|
-
|
|
217
|
-
- **Content-Type**: application/json
|
|
218
|
-
- **Accept**: application/json
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
## notices_unread
|
|
222
|
-
|
|
223
|
-
> <UnreadNotices> notices_unread
|
|
224
|
-
|
|
225
|
-
Count unread notices
|
|
226
|
-
|
|
227
|
-
Counts the user's unread notices.
|
|
228
|
-
|
|
229
|
-
### Examples
|
|
230
|
-
|
|
231
|
-
```ruby
|
|
232
|
-
require 'time'
|
|
233
|
-
require 'peal'
|
|
234
|
-
# setup authorization
|
|
235
|
-
Peal.configure do |config|
|
|
236
|
-
# Configure Bearer authorization: bearer
|
|
237
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
238
|
-
end
|
|
239
|
-
|
|
240
|
-
api_instance = Peal::NoticesApi.new
|
|
241
|
-
|
|
242
|
-
begin
|
|
243
|
-
# Count unread notices
|
|
244
|
-
result = api_instance.notices_unread
|
|
245
|
-
p result
|
|
246
|
-
rescue Peal::ApiError => e
|
|
247
|
-
puts "Error when calling NoticesApi->notices_unread: #{e}"
|
|
248
|
-
end
|
|
249
|
-
```
|
|
250
|
-
|
|
251
|
-
#### Using the notices_unread_with_http_info variant
|
|
252
|
-
|
|
253
|
-
This returns an Array which contains the response data, status code and headers.
|
|
254
|
-
|
|
255
|
-
> <Array(<UnreadNotices>, Integer, Hash)> notices_unread_with_http_info
|
|
256
|
-
|
|
257
|
-
```ruby
|
|
258
|
-
begin
|
|
259
|
-
# Count unread notices
|
|
260
|
-
data, status_code, headers = api_instance.notices_unread_with_http_info
|
|
261
|
-
p status_code # => 2xx
|
|
262
|
-
p headers # => { ... }
|
|
263
|
-
p data # => <UnreadNotices>
|
|
264
|
-
rescue Peal::ApiError => e
|
|
265
|
-
puts "Error when calling NoticesApi->notices_unread_with_http_info: #{e}"
|
|
266
|
-
end
|
|
267
|
-
```
|
|
268
|
-
|
|
269
|
-
### Parameters
|
|
270
|
-
|
|
271
|
-
This endpoint does not need any parameter.
|
|
272
|
-
|
|
273
|
-
### Return type
|
|
274
|
-
|
|
275
|
-
[**UnreadNotices**](UnreadNotices.md)
|
|
276
|
-
|
|
277
|
-
### Authorization
|
|
278
|
-
|
|
279
|
-
[bearer](../README.md#bearer)
|
|
280
|
-
|
|
281
|
-
### HTTP request headers
|
|
282
|
-
|
|
283
|
-
- **Content-Type**: Not defined
|
|
284
|
-
- **Accept**: application/json
|
|
285
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Peal::NotificationPreferences
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **email** | [**NotificationPreferencesEmail**](NotificationPreferencesEmail.md) | | |
|
|
8
|
-
| **every_post** | **Boolean** | | |
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
require 'peal'
|
|
14
|
-
|
|
15
|
-
instance = Peal::NotificationPreferences.new(
|
|
16
|
-
email: null,
|
|
17
|
-
every_post: null
|
|
18
|
-
)
|
|
19
|
-
```
|
|
20
|
-
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
# Peal::NotificationPreferencesApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://app.peal.social*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**notification_preferences_get**](NotificationPreferencesApi.md#notification_preferences_get) | **GET** /api/me/notification-preferences | Get notification preferences |
|
|
8
|
-
| [**notification_preferences_update**](NotificationPreferencesApi.md#notification_preferences_update) | **PATCH** /api/me/notification-preferences | Change notification preferences |
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## notification_preferences_get
|
|
12
|
-
|
|
13
|
-
> <NotificationPreferences> notification_preferences_get
|
|
14
|
-
|
|
15
|
-
Get notification preferences
|
|
16
|
-
|
|
17
|
-
Answers with which notices the user receives by email, and whether they hear about every post. Until they change it: failed and unconfirmed posts, and channels to reconnect, but not published posts, are emailed; and they hear only about the posts they wrote.
|
|
18
|
-
|
|
19
|
-
### Examples
|
|
20
|
-
|
|
21
|
-
```ruby
|
|
22
|
-
require 'time'
|
|
23
|
-
require 'peal'
|
|
24
|
-
# setup authorization
|
|
25
|
-
Peal.configure do |config|
|
|
26
|
-
# Configure Bearer authorization: bearer
|
|
27
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
api_instance = Peal::NotificationPreferencesApi.new
|
|
31
|
-
|
|
32
|
-
begin
|
|
33
|
-
# Get notification preferences
|
|
34
|
-
result = api_instance.notification_preferences_get
|
|
35
|
-
p result
|
|
36
|
-
rescue Peal::ApiError => e
|
|
37
|
-
puts "Error when calling NotificationPreferencesApi->notification_preferences_get: #{e}"
|
|
38
|
-
end
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
#### Using the notification_preferences_get_with_http_info variant
|
|
42
|
-
|
|
43
|
-
This returns an Array which contains the response data, status code and headers.
|
|
44
|
-
|
|
45
|
-
> <Array(<NotificationPreferences>, Integer, Hash)> notification_preferences_get_with_http_info
|
|
46
|
-
|
|
47
|
-
```ruby
|
|
48
|
-
begin
|
|
49
|
-
# Get notification preferences
|
|
50
|
-
data, status_code, headers = api_instance.notification_preferences_get_with_http_info
|
|
51
|
-
p status_code # => 2xx
|
|
52
|
-
p headers # => { ... }
|
|
53
|
-
p data # => <NotificationPreferences>
|
|
54
|
-
rescue Peal::ApiError => e
|
|
55
|
-
puts "Error when calling NotificationPreferencesApi->notification_preferences_get_with_http_info: #{e}"
|
|
56
|
-
end
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### Parameters
|
|
60
|
-
|
|
61
|
-
This endpoint does not need any parameter.
|
|
62
|
-
|
|
63
|
-
### Return type
|
|
64
|
-
|
|
65
|
-
[**NotificationPreferences**](NotificationPreferences.md)
|
|
66
|
-
|
|
67
|
-
### Authorization
|
|
68
|
-
|
|
69
|
-
[bearer](../README.md#bearer)
|
|
70
|
-
|
|
71
|
-
### HTTP request headers
|
|
72
|
-
|
|
73
|
-
- **Content-Type**: Not defined
|
|
74
|
-
- **Accept**: application/json
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
## notification_preferences_update
|
|
78
|
-
|
|
79
|
-
> <NotificationPreferences> notification_preferences_update(notification_preferences_change)
|
|
80
|
-
|
|
81
|
-
Change notification preferences
|
|
82
|
-
|
|
83
|
-
Changes the preferences given, keeps the others, and answers with them all. Staff impersonating the user may not change them.
|
|
84
|
-
|
|
85
|
-
### Examples
|
|
86
|
-
|
|
87
|
-
```ruby
|
|
88
|
-
require 'time'
|
|
89
|
-
require 'peal'
|
|
90
|
-
# setup authorization
|
|
91
|
-
Peal.configure do |config|
|
|
92
|
-
# Configure Bearer authorization: bearer
|
|
93
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
api_instance = Peal::NotificationPreferencesApi.new
|
|
97
|
-
notification_preferences_change = Peal::NotificationPreferencesChange.new # NotificationPreferencesChange |
|
|
98
|
-
|
|
99
|
-
begin
|
|
100
|
-
# Change notification preferences
|
|
101
|
-
result = api_instance.notification_preferences_update(notification_preferences_change)
|
|
102
|
-
p result
|
|
103
|
-
rescue Peal::ApiError => e
|
|
104
|
-
puts "Error when calling NotificationPreferencesApi->notification_preferences_update: #{e}"
|
|
105
|
-
end
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
#### Using the notification_preferences_update_with_http_info variant
|
|
109
|
-
|
|
110
|
-
This returns an Array which contains the response data, status code and headers.
|
|
111
|
-
|
|
112
|
-
> <Array(<NotificationPreferences>, Integer, Hash)> notification_preferences_update_with_http_info(notification_preferences_change)
|
|
113
|
-
|
|
114
|
-
```ruby
|
|
115
|
-
begin
|
|
116
|
-
# Change notification preferences
|
|
117
|
-
data, status_code, headers = api_instance.notification_preferences_update_with_http_info(notification_preferences_change)
|
|
118
|
-
p status_code # => 2xx
|
|
119
|
-
p headers # => { ... }
|
|
120
|
-
p data # => <NotificationPreferences>
|
|
121
|
-
rescue Peal::ApiError => e
|
|
122
|
-
puts "Error when calling NotificationPreferencesApi->notification_preferences_update_with_http_info: #{e}"
|
|
123
|
-
end
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
### Parameters
|
|
127
|
-
|
|
128
|
-
| Name | Type | Description | Notes |
|
|
129
|
-
| ---- | ---- | ----------- | ----- |
|
|
130
|
-
| **notification_preferences_change** | [**NotificationPreferencesChange**](NotificationPreferencesChange.md) | | |
|
|
131
|
-
|
|
132
|
-
### Return type
|
|
133
|
-
|
|
134
|
-
[**NotificationPreferences**](NotificationPreferences.md)
|
|
135
|
-
|
|
136
|
-
### Authorization
|
|
137
|
-
|
|
138
|
-
[bearer](../README.md#bearer)
|
|
139
|
-
|
|
140
|
-
### HTTP request headers
|
|
141
|
-
|
|
142
|
-
- **Content-Type**: application/json
|
|
143
|
-
- **Accept**: application/json
|
|
144
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Peal::NotificationPreferencesChange
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **email** | [**NotificationPreferencesChangeEmail**](NotificationPreferencesChangeEmail.md) | | [optional] |
|
|
8
|
-
| **every_post** | **Boolean** | | [optional] |
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
require 'peal'
|
|
14
|
-
|
|
15
|
-
instance = Peal::NotificationPreferencesChange.new(
|
|
16
|
-
email: null,
|
|
17
|
-
every_post: null
|
|
18
|
-
)
|
|
19
|
-
```
|
|
20
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Peal::NotificationPreferencesChangeEmail
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **channel_reconnect** | **Boolean** | | [optional] |
|
|
8
|
-
| **post_failed** | **Boolean** | | [optional] |
|
|
9
|
-
| **post_published** | **Boolean** | | [optional] |
|
|
10
|
-
| **post_unconfirmed** | **Boolean** | | [optional] |
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```ruby
|
|
15
|
-
require 'peal'
|
|
16
|
-
|
|
17
|
-
instance = Peal::NotificationPreferencesChangeEmail.new(
|
|
18
|
-
channel_reconnect: null,
|
|
19
|
-
post_failed: null,
|
|
20
|
-
post_published: null,
|
|
21
|
-
post_unconfirmed: null
|
|
22
|
-
)
|
|
23
|
-
```
|
|
24
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Peal::NotificationPreferencesEmail
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **channel_reconnect** | **Boolean** | | |
|
|
8
|
-
| **post_failed** | **Boolean** | | |
|
|
9
|
-
| **post_published** | **Boolean** | | |
|
|
10
|
-
| **post_unconfirmed** | **Boolean** | | |
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```ruby
|
|
15
|
-
require 'peal'
|
|
16
|
-
|
|
17
|
-
instance = Peal::NotificationPreferencesEmail.new(
|
|
18
|
-
channel_reconnect: null,
|
|
19
|
-
post_failed: null,
|
|
20
|
-
post_published: null,
|
|
21
|
-
post_unconfirmed: null
|
|
22
|
-
)
|
|
23
|
-
```
|
|
24
|
-
|
data/docs/PaidPlan.md
DELETED
data/docs/PeriodUsage.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Peal::PeriodUsage
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **resets_at** | **String** | | |
|
|
8
|
-
| **used** | **Integer** | | |
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
require 'peal'
|
|
14
|
-
|
|
15
|
-
instance = Peal::PeriodUsage.new(
|
|
16
|
-
resets_at: null,
|
|
17
|
-
used: null
|
|
18
|
-
)
|
|
19
|
-
```
|
|
20
|
-
|
data/docs/Plan.md
DELETED
data/docs/PlanAllowances.md
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Peal::PlanAllowances
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **assistant_requests** | **Integer** | | |
|
|
8
|
-
| **channels** | **Integer** | | |
|
|
9
|
-
| **members** | **Integer** | | |
|
|
10
|
-
| **scheduled_posts** | **Integer** | | |
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```ruby
|
|
15
|
-
require 'peal'
|
|
16
|
-
|
|
17
|
-
instance = Peal::PlanAllowances.new(
|
|
18
|
-
assistant_requests: null,
|
|
19
|
-
channels: null,
|
|
20
|
-
members: null,
|
|
21
|
-
scheduled_posts: null
|
|
22
|
-
)
|
|
23
|
-
```
|
|
24
|
-
|
data/docs/PlanLimit.md
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# Peal::PlanLimitReachedEncoded
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **_tag** | **String** | | |
|
|
8
|
-
| **allowed** | **Integer** | | |
|
|
9
|
-
| **limit** | [**PlanLimit**](PlanLimit.md) | | |
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```ruby
|
|
14
|
-
require 'peal'
|
|
15
|
-
|
|
16
|
-
instance = Peal::PlanLimitReachedEncoded.new(
|
|
17
|
-
_tag: null,
|
|
18
|
-
allowed: null,
|
|
19
|
-
limit: null
|
|
20
|
-
)
|
|
21
|
-
```
|
|
22
|
-
|
data/docs/PlanOffer.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Peal::PlanOffer
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **allowances** | [**PlanAllowances**](PlanAllowances.md) | | |
|
|
8
|
-
| **plan** | [**Plan**](Plan.md) | | |
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
require 'peal'
|
|
14
|
-
|
|
15
|
-
instance = Peal::PlanOffer.new(
|
|
16
|
-
allowances: null,
|
|
17
|
-
plan: null
|
|
18
|
-
)
|
|
19
|
-
```
|
|
20
|
-
|