|
| 1 | + # 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. |
| 2 | + # This is a convenience wrapper that only requires the parameters needed for JWT assertion authentication. |
| 3 | + # This requests to <code>POST https://api.line.me/oauth2/v3/token</code> |
| 4 | + # 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. |
| 5 | + # |
| 6 | + # @param client_assertion [String] A JSON Web Token the client needs to create and sign with the private key of the Assertion Signing Key. |
| 7 | + # @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token |
| 8 | + # @return [Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse] when HTTP status code is 200 |
| 9 | + # @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself. |
| 10 | + def issue_stateless_channel_token_by_jwt_assertion( |
| 11 | + client_assertion: |
| 12 | + ) |
| 13 | + issue_stateless_channel_token( # steep:ignore DeprecatedReference |
| 14 | + grant_type: 'client_credentials', |
| 15 | + client_assertion_type: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer', |
| 16 | + client_assertion: client_assertion |
| 17 | + ) |
| 18 | + end |
| 19 | + |
| 20 | + # 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. |
| 21 | + # This is a convenience wrapper that only requires the parameters needed for client secret authentication. |
| 22 | + # This requests to <code>POST https://api.line.me/oauth2/v3/token</code> |
| 23 | + # 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. |
| 24 | + # |
| 25 | + # @param client_id [String] Channel ID. |
| 26 | + # @param client_secret [String] Channel secret. |
| 27 | + # @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token |
| 28 | + # @return [Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse] when HTTP status code is 200 |
| 29 | + # @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself. |
| 30 | + def issue_stateless_channel_token_by_client_secret( |
| 31 | + client_id:, |
| 32 | + client_secret: |
| 33 | + ) |
| 34 | + issue_stateless_channel_token( # steep:ignore DeprecatedReference |
| 35 | + grant_type: 'client_credentials', |
| 36 | + client_id: client_id, |
| 37 | + client_secret: client_secret |
| 38 | + ) |
| 39 | + end |
| 40 | + |
| 41 | + # 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. |
| 42 | + # This is a convenience wrapper that only requires the parameters needed for JWT assertion authentication. |
| 43 | + # This requests to <code>POST https://api.line.me/oauth2/v3/token</code> |
| 44 | + # This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase. |
| 45 | + # |
| 46 | + # @param client_assertion [String] A JSON Web Token the client needs to create and sign with the private key of the Assertion Signing Key. |
| 47 | + # @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token |
| 48 | + # @return [Array(Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse, Integer, Hash{String => String})] when HTTP status code is 200 |
| 49 | + # @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself. |
| 50 | + def issue_stateless_channel_token_by_jwt_assertion_with_http_info( |
| 51 | + client_assertion: |
| 52 | + ) |
| 53 | + issue_stateless_channel_token_with_http_info( # steep:ignore DeprecatedReference |
| 54 | + grant_type: 'client_credentials', |
| 55 | + client_assertion_type: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer', |
| 56 | + client_assertion: client_assertion |
| 57 | + ) |
| 58 | + end |
| 59 | + |
| 60 | + # 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. |
| 61 | + # This is a convenience wrapper that only requires the parameters needed for client secret authentication. |
| 62 | + # This requests to <code>POST https://api.line.me/oauth2/v3/token</code> |
| 63 | + # This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase. |
| 64 | + # |
| 65 | + # @param client_id [String] Channel ID. |
| 66 | + # @param client_secret [String] Channel secret. |
| 67 | + # @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token |
| 68 | + # @return [Array(Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse, Integer, Hash{String => String})] when HTTP status code is 200 |
| 69 | + # @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself. |
| 70 | + def issue_stateless_channel_token_by_client_secret_with_http_info( |
| 71 | + client_id:, |
| 72 | + client_secret: |
| 73 | + ) |
| 74 | + issue_stateless_channel_token_with_http_info( # steep:ignore DeprecatedReference |
| 75 | + grant_type: 'client_credentials', |
| 76 | + client_id: client_id, |
| 77 | + client_secret: client_secret |
| 78 | + ) |
| 79 | + end |
0 commit comments