constructor
LINE Notify configuration from LINE Notify services website.
The underlying axios instance for notify-api.line.me APIs.
The underlying axios instance.
Get Auth Link
Get The OAuth2 authorization endpoint URI.
Assigns a token that can be used for responding to CSRF attacks
CSRF attacks are typically countered by assigning a hash value generated from a user's session ID, and then verifying the state parameter variable when it attempts to access redirect_uri.
LINE Notify is designed with web applications in mind, and requires state parameter variables.
The OAuth2 authorization endpoint URI
Get Status
An API for checking connection status. You can use this API to check the validity of an access token. Acquires the names of related users or groups if acquiring them is possible.
On the connected service side, it's used to see which groups are configured with a notification and which user the notifications will be sent to. There is no need to check the status with this API before calling /api/notify or /api/revoke.
If this API receives a status code 401 when called, the access token will be deactivated on LINE Notify (disabled by the user in most cases). Connected services will also delete the connection information.
If a connected service wishes to check the connection status of a certain user
As LINE Notify also provides the same feature, support for this API is optional.
the accessToken you want to revoke
Get Token
The OAuth2 token endpoint.
Assigns a code parameter value generated during redirection
An access token for authentication.
Revoke Token
An API used on the connected service side to revoke notification configurations. Using this API will revoke all used access tokens, disabling the access tokens from accessing the API.
The revocation process on the connected service side is as follows
When the connected service wishes to end a connection with a user
As LINE Notify also provides the same feature, support for this API is optional.
the accessToken you want to revoke
Send Notify
Sends notifications to users or groups that are related to an access token.
If this API receives a status code 401 when called, the access token will be deactivated on LINE Notify (disabled by the user in most cases). Connected services will also delete the connection information.
Requests use POST method with application/x-www-form-urlencoded (Identical to the default HTML form transfer type).
When a connected service has an event that needs to send a notification to LINE
An access token related to users or groups
The notification content
Other optional parameters
Generated using TypeDoc
LINE Notify