line-bot-api 2.5.0 → 2.7.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/lib/line/bot/v2/channel_access_token/api/channel_access_token_client.rb +90 -1
- data/lib/line/bot/v2/manage_audience/model/audience_group.rb +2 -2
- data/lib/line/bot/v2/manage_audience/model/create_audience_group_response.rb +2 -2
- data/lib/line/bot/v2/manage_audience/model/create_click_based_audience_group_response.rb +2 -2
- data/lib/line/bot/v2/manage_audience/model/create_imp_based_audience_group_response.rb +2 -2
- data/lib/line/bot/version.rb +1 -1
- data/sig/line/bot/v2/channel_access_token/api/channel_access_token_client.rbs +71 -0
- data/sig/line/bot/v2/manage_audience/model/audience_group.rbs +3 -3
- data/sig/line/bot/v2/manage_audience/model/create_audience_group_response.rbs +3 -3
- data/sig/line/bot/v2/manage_audience/model/create_click_based_audience_group_response.rbs +3 -3
- data/sig/line/bot/v2/manage_audience/model/create_imp_based_audience_group_response.rbs +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b3acf96654a14ee4debeb4eb0c765e1b37ae8528dd885ac089a2622022334478
|
|
4
|
+
data.tar.gz: 0666c4e49938d1de7c635da1b88928acf60b071c60781840eea5ec2803989ffa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 86874a817aa198297c3a0d6c9d8b9cafb0bf9d9005c18e438bc28aeccb6cbcd5dbaba768d7d587a346fac414dbaffbb790626cbb7a928156fb4b1f0c3d9932af
|
|
7
|
+
data.tar.gz: bed15858b6124bbaab49eea34be519cc5e25041e6e220882cd3634a6d80649c7240bff91fb46c7d3675292d415ffa52ba7440859d68d7967be6ae99268fb1583
|
|
@@ -237,6 +237,10 @@ module Line
|
|
|
237
237
|
response_body
|
|
238
238
|
end
|
|
239
239
|
|
|
240
|
+
# @deprecated
|
|
241
|
+
# This is deprecated.
|
|
242
|
+
# Please use {#issue_stateless_channel_token_by_jwt_assertion_with_http_info} or {#issue_stateless_channel_token_by_client_secret_with_http_info} instead.
|
|
243
|
+
#
|
|
240
244
|
# Issues a new stateless channel access token, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
|
|
241
245
|
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
|
|
242
246
|
# This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
|
|
@@ -284,6 +288,10 @@ module Line
|
|
|
284
288
|
end
|
|
285
289
|
end
|
|
286
290
|
|
|
291
|
+
# @deprecated
|
|
292
|
+
# This is deprecated.
|
|
293
|
+
# Please use {#issue_stateless_channel_token_by_jwt_assertion} or {#issue_stateless_channel_token_by_client_secret} instead.
|
|
294
|
+
#
|
|
287
295
|
# Issues a new stateless channel access token, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
|
|
288
296
|
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
|
|
289
297
|
# When you want to get HTTP status code or response headers, use {#issue_stateless_channel_token_with_http_info} instead of this.
|
|
@@ -303,7 +311,7 @@ module Line
|
|
|
303
311
|
client_id: nil,
|
|
304
312
|
client_secret: nil
|
|
305
313
|
)
|
|
306
|
-
response_body, _status_code, _headers = issue_stateless_channel_token_with_http_info(
|
|
314
|
+
response_body, _status_code, _headers = issue_stateless_channel_token_with_http_info( # steep:ignore DeprecatedReference
|
|
307
315
|
grant_type: grant_type,
|
|
308
316
|
client_assertion_type: client_assertion_type,
|
|
309
317
|
client_assertion: client_assertion,
|
|
@@ -526,6 +534,87 @@ module Line
|
|
|
526
534
|
|
|
527
535
|
response_body
|
|
528
536
|
end
|
|
537
|
+
|
|
538
|
+
# Issues a new stateless channel access token by JWT assertion, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
|
|
539
|
+
# This is a convenience wrapper that only requires the parameters needed for JWT assertion authentication.
|
|
540
|
+
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
|
|
541
|
+
# When you want to get HTTP status code or response headers, use {#issue_stateless_channel_token_by_jwt_assertion_with_http_info} instead of this.
|
|
542
|
+
#
|
|
543
|
+
# @param client_assertion [String] A JSON Web Token the client needs to create and sign with the private key of the Assertion Signing Key.
|
|
544
|
+
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
|
|
545
|
+
# @return [Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse] when HTTP status code is 200
|
|
546
|
+
# @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself.
|
|
547
|
+
def issue_stateless_channel_token_by_jwt_assertion(
|
|
548
|
+
client_assertion:
|
|
549
|
+
)
|
|
550
|
+
issue_stateless_channel_token( # steep:ignore DeprecatedReference
|
|
551
|
+
grant_type: 'client_credentials',
|
|
552
|
+
client_assertion_type: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer',
|
|
553
|
+
client_assertion: client_assertion
|
|
554
|
+
)
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
# Issues a new stateless channel access token by client secret, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
|
|
558
|
+
# This is a convenience wrapper that only requires the parameters needed for client secret authentication.
|
|
559
|
+
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
|
|
560
|
+
# When you want to get HTTP status code or response headers, use {#issue_stateless_channel_token_by_client_secret_with_http_info} instead of this.
|
|
561
|
+
#
|
|
562
|
+
# @param client_id [String] Channel ID.
|
|
563
|
+
# @param client_secret [String] Channel secret.
|
|
564
|
+
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
|
|
565
|
+
# @return [Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse] when HTTP status code is 200
|
|
566
|
+
# @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself.
|
|
567
|
+
def issue_stateless_channel_token_by_client_secret(
|
|
568
|
+
client_id:,
|
|
569
|
+
client_secret:
|
|
570
|
+
)
|
|
571
|
+
issue_stateless_channel_token( # steep:ignore DeprecatedReference
|
|
572
|
+
grant_type: 'client_credentials',
|
|
573
|
+
client_id: client_id,
|
|
574
|
+
client_secret: client_secret
|
|
575
|
+
)
|
|
576
|
+
end
|
|
577
|
+
|
|
578
|
+
# Issues a new stateless channel access token by JWT assertion, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
|
|
579
|
+
# This is a convenience wrapper that only requires the parameters needed for JWT assertion authentication.
|
|
580
|
+
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
|
|
581
|
+
# This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
|
|
582
|
+
#
|
|
583
|
+
# @param client_assertion [String] A JSON Web Token the client needs to create and sign with the private key of the Assertion Signing Key.
|
|
584
|
+
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
|
|
585
|
+
# @return [Array(Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
586
|
+
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
587
|
+
def issue_stateless_channel_token_by_jwt_assertion_with_http_info(
|
|
588
|
+
client_assertion:
|
|
589
|
+
)
|
|
590
|
+
issue_stateless_channel_token_with_http_info( # steep:ignore DeprecatedReference
|
|
591
|
+
grant_type: 'client_credentials',
|
|
592
|
+
client_assertion_type: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer',
|
|
593
|
+
client_assertion: client_assertion
|
|
594
|
+
)
|
|
595
|
+
end
|
|
596
|
+
|
|
597
|
+
# Issues a new stateless channel access token by client secret, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
|
|
598
|
+
# This is a convenience wrapper that only requires the parameters needed for client secret authentication.
|
|
599
|
+
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
|
|
600
|
+
# This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
|
|
601
|
+
#
|
|
602
|
+
# @param client_id [String] Channel ID.
|
|
603
|
+
# @param client_secret [String] Channel secret.
|
|
604
|
+
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
|
|
605
|
+
# @return [Array(Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
606
|
+
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
607
|
+
def issue_stateless_channel_token_by_client_secret_with_http_info(
|
|
608
|
+
client_id:,
|
|
609
|
+
client_secret:
|
|
610
|
+
)
|
|
611
|
+
issue_stateless_channel_token_with_http_info( # steep:ignore DeprecatedReference
|
|
612
|
+
grant_type: 'client_credentials',
|
|
613
|
+
client_id: client_id,
|
|
614
|
+
client_secret: client_secret
|
|
615
|
+
)
|
|
616
|
+
end
|
|
617
|
+
|
|
529
618
|
end
|
|
530
619
|
end
|
|
531
620
|
end
|
|
@@ -17,7 +17,7 @@ module Line
|
|
|
17
17
|
# @return [Integer,nil] The audience ID.
|
|
18
18
|
attr_accessor :audience_group_id
|
|
19
19
|
# @!attribute [rw] type
|
|
20
|
-
# @return [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP')
|
|
20
|
+
# @return [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC')
|
|
21
21
|
attr_accessor :type
|
|
22
22
|
# @!attribute [rw] description
|
|
23
23
|
# @return [String,nil] The audience's name.
|
|
@@ -51,7 +51,7 @@ module Line
|
|
|
51
51
|
attr_accessor :create_route
|
|
52
52
|
|
|
53
53
|
# @param audience_group_id [Integer,nil] The audience ID.
|
|
54
|
-
# @param type [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP')
|
|
54
|
+
# @param type [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC')
|
|
55
55
|
# @param description [String,nil] The audience's name.
|
|
56
56
|
# @param status [String,nil] ('IN_PROGRESS'|'READY'|'FAILED'|'EXPIRED'|'INACTIVE'|'ACTIVATING')
|
|
57
57
|
# @param failed_type [String,nil] ('AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT'|'INTERNAL_ERROR'|'')
|
|
@@ -21,7 +21,7 @@ module Line
|
|
|
21
21
|
# @return [String,nil] ('MESSAGING_API') How the audience was created. `MESSAGING_API`: An audience created with Messaging API.
|
|
22
22
|
attr_accessor :create_route
|
|
23
23
|
# @!attribute [rw] type
|
|
24
|
-
# @return [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP')
|
|
24
|
+
# @return [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC')
|
|
25
25
|
attr_accessor :type
|
|
26
26
|
# @!attribute [rw] description
|
|
27
27
|
# @return [String,nil] The audience's name.
|
|
@@ -41,7 +41,7 @@ module Line
|
|
|
41
41
|
|
|
42
42
|
# @param audience_group_id [Integer,nil] The audience ID.
|
|
43
43
|
# @param create_route [String,nil] ('MESSAGING_API') How the audience was created. `MESSAGING_API`: An audience created with Messaging API.
|
|
44
|
-
# @param type [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP')
|
|
44
|
+
# @param type [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC')
|
|
45
45
|
# @param description [String,nil] The audience's name.
|
|
46
46
|
# @param created [Integer,nil] When the audience was created (in UNIX time).
|
|
47
47
|
# @param permission [String,nil] ('READ'|'READ_WRITE') Audience's update permission. Audiences linked to the same channel will be READ_WRITE. `READ`: Can use only. `READ_WRITE`: Can use and update.
|
|
@@ -18,7 +18,7 @@ module Line
|
|
|
18
18
|
# @return [Integer,nil] The audience ID.
|
|
19
19
|
attr_accessor :audience_group_id
|
|
20
20
|
# @!attribute [rw] type
|
|
21
|
-
# @return [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP')
|
|
21
|
+
# @return [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC')
|
|
22
22
|
attr_accessor :type
|
|
23
23
|
# @!attribute [rw] description
|
|
24
24
|
# @return [String,nil] The audience's name.
|
|
@@ -46,7 +46,7 @@ module Line
|
|
|
46
46
|
attr_accessor :is_ifa_audience
|
|
47
47
|
|
|
48
48
|
# @param audience_group_id [Integer,nil] The audience ID.
|
|
49
|
-
# @param type [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP')
|
|
49
|
+
# @param type [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC')
|
|
50
50
|
# @param description [String,nil] The audience's name.
|
|
51
51
|
# @param created [Integer,nil] When the audience was created (in UNIX time).
|
|
52
52
|
# @param request_id [String,nil] The request ID that was specified when the audience was created.
|
|
@@ -18,7 +18,7 @@ module Line
|
|
|
18
18
|
# @return [Integer,nil] The audience ID.
|
|
19
19
|
attr_accessor :audience_group_id
|
|
20
20
|
# @!attribute [rw] type
|
|
21
|
-
# @return [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP')
|
|
21
|
+
# @return [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC')
|
|
22
22
|
attr_accessor :type
|
|
23
23
|
# @!attribute [rw] description
|
|
24
24
|
# @return [String,nil] The audience's name.
|
|
@@ -31,7 +31,7 @@ module Line
|
|
|
31
31
|
attr_accessor :request_id
|
|
32
32
|
|
|
33
33
|
# @param audience_group_id [Integer,nil] The audience ID.
|
|
34
|
-
# @param type [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP')
|
|
34
|
+
# @param type [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC')
|
|
35
35
|
# @param description [String,nil] The audience's name.
|
|
36
36
|
# @param created [Integer,nil] When the audience was created (in UNIX time).
|
|
37
37
|
# @param request_id [String,nil] The request ID that was specified when the audience was created.
|
data/lib/line/bot/version.rb
CHANGED
|
@@ -159,6 +159,7 @@ module Line
|
|
|
159
159
|
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
|
|
160
160
|
# @return [Array(Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
161
161
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
162
|
+
%a{deprecated: Use #issue_stateless_channel_token_by_jwt_assertion_with_http_info or #issue_stateless_channel_token_by_client_secret_with_http_info instead}
|
|
162
163
|
def issue_stateless_channel_token_with_http_info: (
|
|
163
164
|
?grant_type: String?,
|
|
164
165
|
?client_assertion_type: String?,
|
|
@@ -182,6 +183,7 @@ module Line
|
|
|
182
183
|
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
|
|
183
184
|
# @return [Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse] when HTTP status code is 200
|
|
184
185
|
# @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself.
|
|
186
|
+
%a{deprecated: Use #issue_stateless_channel_token_by_jwt_assertion or #issue_stateless_channel_token_by_client_secret instead}
|
|
185
187
|
def issue_stateless_channel_token: (
|
|
186
188
|
?grant_type: String?,
|
|
187
189
|
?client_assertion_type: String?,
|
|
@@ -320,6 +322,75 @@ module Line
|
|
|
320
322
|
VerifyChannelAccessTokenResponse # when HTTP status code is 200
|
|
321
323
|
| String? # otherwise
|
|
322
324
|
)
|
|
325
|
+
|
|
326
|
+
# Issues a new stateless channel access token by JWT assertion, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
|
|
327
|
+
# This is a convenience wrapper that only requires the parameters needed for JWT assertion authentication.
|
|
328
|
+
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
|
|
329
|
+
# When you want to get HTTP status code or response headers, use {#issue_stateless_channel_token_by_jwt_assertion_with_http_info} instead of this.
|
|
330
|
+
#
|
|
331
|
+
# @param client_assertion [String] A JSON Web Token the client needs to create and sign with the private key of the Assertion Signing Key.
|
|
332
|
+
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
|
|
333
|
+
# @return [Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse] when HTTP status code is 200
|
|
334
|
+
# @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself.
|
|
335
|
+
def issue_stateless_channel_token_by_jwt_assertion: (
|
|
336
|
+
client_assertion: String
|
|
337
|
+
) -> (
|
|
338
|
+
IssueStatelessChannelAccessTokenResponse # when HTTP status code is 200
|
|
339
|
+
| String? # otherwise
|
|
340
|
+
)
|
|
341
|
+
|
|
342
|
+
# Issues a new stateless channel access token by client secret, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
|
|
343
|
+
# This is a convenience wrapper that only requires the parameters needed for client secret authentication.
|
|
344
|
+
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
|
|
345
|
+
# When you want to get HTTP status code or response headers, use {#issue_stateless_channel_token_by_client_secret_with_http_info} instead of this.
|
|
346
|
+
#
|
|
347
|
+
# @param client_id [String] Channel ID.
|
|
348
|
+
# @param client_secret [String] Channel secret.
|
|
349
|
+
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
|
|
350
|
+
# @return [Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse] when HTTP status code is 200
|
|
351
|
+
# @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself.
|
|
352
|
+
def issue_stateless_channel_token_by_client_secret: (
|
|
353
|
+
client_id: String,
|
|
354
|
+
client_secret: String
|
|
355
|
+
) -> (
|
|
356
|
+
IssueStatelessChannelAccessTokenResponse # when HTTP status code is 200
|
|
357
|
+
| String? # otherwise
|
|
358
|
+
)
|
|
359
|
+
|
|
360
|
+
# Issues a new stateless channel access token by JWT assertion, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
|
|
361
|
+
# This is a convenience wrapper that only requires the parameters needed for JWT assertion authentication.
|
|
362
|
+
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
|
|
363
|
+
# This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
|
|
364
|
+
#
|
|
365
|
+
# @param client_assertion [String] A JSON Web Token the client needs to create and sign with the private key of the Assertion Signing Key.
|
|
366
|
+
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
|
|
367
|
+
# @return [Array(Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
368
|
+
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
369
|
+
def issue_stateless_channel_token_by_jwt_assertion_with_http_info: (
|
|
370
|
+
client_assertion: String
|
|
371
|
+
) -> (
|
|
372
|
+
[IssueStatelessChannelAccessTokenResponse, 200, Hash[untyped, untyped]] # when HTTP status code is 200
|
|
373
|
+
| [String?, Integer, Hash[untyped, untyped]] # otherwise
|
|
374
|
+
)
|
|
375
|
+
|
|
376
|
+
# Issues a new stateless channel access token by client secret, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
|
|
377
|
+
# This is a convenience wrapper that only requires the parameters needed for client secret authentication.
|
|
378
|
+
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
|
|
379
|
+
# This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
|
|
380
|
+
#
|
|
381
|
+
# @param client_id [String] Channel ID.
|
|
382
|
+
# @param client_secret [String] Channel secret.
|
|
383
|
+
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
|
|
384
|
+
# @return [Array(Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
385
|
+
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
386
|
+
def issue_stateless_channel_token_by_client_secret_with_http_info: (
|
|
387
|
+
client_id: String,
|
|
388
|
+
client_secret: String
|
|
389
|
+
) -> (
|
|
390
|
+
[IssueStatelessChannelAccessTokenResponse, 200, Hash[untyped, untyped]] # when HTTP status code is 200
|
|
391
|
+
| [String?, Integer, Hash[untyped, untyped]] # otherwise
|
|
392
|
+
)
|
|
393
|
+
|
|
323
394
|
end
|
|
324
395
|
end
|
|
325
396
|
end
|
|
@@ -14,7 +14,7 @@ module Line
|
|
|
14
14
|
# Audience group
|
|
15
15
|
class AudienceGroup
|
|
16
16
|
attr_accessor audience_group_id: Integer?
|
|
17
|
-
attr_accessor type: 'UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'?
|
|
17
|
+
attr_accessor type: 'UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC'?
|
|
18
18
|
attr_accessor description: String?
|
|
19
19
|
attr_accessor status: 'IN_PROGRESS'|'READY'|'FAILED'|'EXPIRED'|'INACTIVE'|'ACTIVATING'?
|
|
20
20
|
attr_accessor failed_type: 'AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT'|'INTERNAL_ERROR'|''?
|
|
@@ -28,7 +28,7 @@ module Line
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
# @param audience_group_id [Integer,nil] The audience ID.
|
|
31
|
-
# @param type [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP')
|
|
31
|
+
# @param type [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC')
|
|
32
32
|
# @param description [String,nil] The audience's name.
|
|
33
33
|
# @param status [String,nil] ('IN_PROGRESS'|'READY'|'FAILED'|'EXPIRED'|'INACTIVE'|'ACTIVATING')
|
|
34
34
|
# @param failed_type [String,nil] ('AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT'|'INTERNAL_ERROR'|'')
|
|
@@ -41,7 +41,7 @@ module Line
|
|
|
41
41
|
# @param create_route [String,nil] ('OA_MANAGER'|'MESSAGING_API'|'POINT_AD'|'AD_MANAGER')
|
|
42
42
|
def initialize: (
|
|
43
43
|
?audience_group_id: Integer?,
|
|
44
|
-
?type: 'UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'?,
|
|
44
|
+
?type: 'UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC'?,
|
|
45
45
|
?description: String?,
|
|
46
46
|
?status: 'IN_PROGRESS'|'READY'|'FAILED'|'EXPIRED'|'INACTIVE'|'ACTIVATING'?,
|
|
47
47
|
?failed_type: 'AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT'|'INTERNAL_ERROR'|''?,
|
|
@@ -16,7 +16,7 @@ module Line
|
|
|
16
16
|
class CreateAudienceGroupResponse
|
|
17
17
|
attr_accessor audience_group_id: Integer?
|
|
18
18
|
attr_accessor create_route: 'MESSAGING_API'?
|
|
19
|
-
attr_accessor type: 'UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'?
|
|
19
|
+
attr_accessor type: 'UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC'?
|
|
20
20
|
attr_accessor description: String?
|
|
21
21
|
attr_accessor created: Integer?
|
|
22
22
|
attr_accessor permission: 'READ'|'READ_WRITE'?
|
|
@@ -26,7 +26,7 @@ module Line
|
|
|
26
26
|
|
|
27
27
|
# @param audience_group_id [Integer,nil] The audience ID.
|
|
28
28
|
# @param create_route [String,nil] ('MESSAGING_API') How the audience was created. `MESSAGING_API`: An audience created with Messaging API.
|
|
29
|
-
# @param type [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP')
|
|
29
|
+
# @param type [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC')
|
|
30
30
|
# @param description [String,nil] The audience's name.
|
|
31
31
|
# @param created [Integer,nil] When the audience was created (in UNIX time).
|
|
32
32
|
# @param permission [String,nil] ('READ'|'READ_WRITE') Audience's update permission. Audiences linked to the same channel will be READ_WRITE. `READ`: Can use only. `READ_WRITE`: Can use and update.
|
|
@@ -35,7 +35,7 @@ module Line
|
|
|
35
35
|
def initialize: (
|
|
36
36
|
?audience_group_id: Integer?,
|
|
37
37
|
?create_route: 'MESSAGING_API'?,
|
|
38
|
-
?type: 'UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'?,
|
|
38
|
+
?type: 'UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC'?,
|
|
39
39
|
?description: String?,
|
|
40
40
|
?created: Integer?,
|
|
41
41
|
?permission: 'READ'|'READ_WRITE'?,
|
|
@@ -15,7 +15,7 @@ module Line
|
|
|
15
15
|
# @see https://developers.line.biz/en/reference/messaging-api/#create-click-audience-group
|
|
16
16
|
class CreateClickBasedAudienceGroupResponse
|
|
17
17
|
attr_accessor audience_group_id: Integer?
|
|
18
|
-
attr_accessor type: 'UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'?
|
|
18
|
+
attr_accessor type: 'UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC'?
|
|
19
19
|
attr_accessor description: String?
|
|
20
20
|
attr_accessor created: Integer?
|
|
21
21
|
attr_accessor request_id: String?
|
|
@@ -27,7 +27,7 @@ module Line
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
# @param audience_group_id [Integer,nil] The audience ID.
|
|
30
|
-
# @param type [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP')
|
|
30
|
+
# @param type [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC')
|
|
31
31
|
# @param description [String,nil] The audience's name.
|
|
32
32
|
# @param created [Integer,nil] When the audience was created (in UNIX time).
|
|
33
33
|
# @param request_id [String,nil] The request ID that was specified when the audience was created.
|
|
@@ -38,7 +38,7 @@ module Line
|
|
|
38
38
|
# @param is_ifa_audience [bool,nil] The value indicating the type of account to be sent, as specified when creating the audience for uploading user IDs. One of: true: Accounts are specified with IFAs. false (default): Accounts are specified with user IDs.
|
|
39
39
|
def initialize: (
|
|
40
40
|
?audience_group_id: Integer?,
|
|
41
|
-
?type: 'UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'?,
|
|
41
|
+
?type: 'UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC'?,
|
|
42
42
|
?description: String?,
|
|
43
43
|
?created: Integer?,
|
|
44
44
|
?request_id: String?,
|
|
@@ -15,20 +15,20 @@ module Line
|
|
|
15
15
|
# @see https://developers.line.biz/en/reference/messaging-api/#create-imp-audience-group
|
|
16
16
|
class CreateImpBasedAudienceGroupResponse
|
|
17
17
|
attr_accessor audience_group_id: Integer?
|
|
18
|
-
attr_accessor type: 'UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'?
|
|
18
|
+
attr_accessor type: 'UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC'?
|
|
19
19
|
attr_accessor description: String?
|
|
20
20
|
attr_accessor created: Integer?
|
|
21
21
|
attr_accessor request_id: String?
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
# @param audience_group_id [Integer,nil] The audience ID.
|
|
25
|
-
# @param type [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP')
|
|
25
|
+
# @param type [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC')
|
|
26
26
|
# @param description [String,nil] The audience's name.
|
|
27
27
|
# @param created [Integer,nil] When the audience was created (in UNIX time).
|
|
28
28
|
# @param request_id [String,nil] The request ID that was specified when the audience was created.
|
|
29
29
|
def initialize: (
|
|
30
30
|
?audience_group_id: Integer?,
|
|
31
|
-
?type: 'UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'?,
|
|
31
|
+
?type: 'UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC'?,
|
|
32
32
|
?description: String?,
|
|
33
33
|
?created: Integer?,
|
|
34
34
|
?request_id: String?,
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: line-bot-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- LINE Corporation
|
|
@@ -760,7 +760,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
760
760
|
- !ruby/object:Gem::Version
|
|
761
761
|
version: '0'
|
|
762
762
|
requirements: []
|
|
763
|
-
rubygems_version:
|
|
763
|
+
rubygems_version: 4.0.6
|
|
764
764
|
specification_version: 4
|
|
765
765
|
summary: SDK of the LINE Messaging API for Ruby
|
|
766
766
|
test_files: []
|