Skip to content

Commit 17f392c

Browse files
author
Hyunje Jun
committed
Use new dev doc links
1 parent bf02404 commit 17f392c

File tree

7 files changed

+25
-25
lines changed

7 files changed

+25
-25
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ the [documentation](https://line.github.io/line-bot-sdk-nodejs/).
2424
Here are links to official references for LINE Messaging API. It is recommended
2525
reading them beforehand.
2626

27-
* LINE API Reference [EN](https://devdocs.line.me/en/) [JA](https://devdocs.line.me/ja/)
27+
* LINE API Reference [EN](https://developers.line.me/en/docs/messaging-api/reference/) [JA](https://developers.line.me/ja/docs/messaging-api/reference/)
2828
* LINE Developers - Messaging API
2929
* [Overview](https://developers.line.me/messaging-api/overview)
3030
* [Getting started](https://developers.line.me/messaging-api/getting-started)

docs/pages/api-reference/client.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# `new Client(config)`
22

33
`Client` is a class representing an API client. It provides methods
4-
corresponding to [messaging APIs](https://devdocs.line.me/en/#messaging-api).
4+
corresponding to [messaging APIs](https://developers.line.me/en/docs/messaging-api/reference/).
55

66
#### Type signature
77

@@ -26,7 +26,7 @@ class Client {
2626
```
2727

2828
`Message` is a valid message object. About message object structure, please
29-
refer to [Send message object](https://devdocs.line.me/en/#send-message-object)
29+
refer to [Send message object](https://developers.line.me/en/docs/messaging-api/reference/#message-objects)
3030
of the official documentation.
3131

3232
`ClientConfig` type is like below, except that it also allows fields
@@ -43,7 +43,7 @@ type ClientConfig = {
4343
For a parameter `messages: messages: Message | Message[]`, you can provide a
4444
message object or an array of message objects. Both will work, but please beware
4545
that there can be a limit on the number of the messages to be sent
46-
simultaneously. About the API detail, please refer to [the official documentation](https://devdocs.line.me/en/#messaging-api).
46+
simultaneously. About the API detail, please refer to [the official documentation](https://developers.line.me/en/docs/messaging-api/reference/#message-objects).
4747
4848
For functions returning `Promise`, there will be errors thrown if something
4949
goes wrong, such as HTTP errors or parsing errors. You can catch them with the
@@ -52,7 +52,7 @@ in [the Client guide](../guide/client.md).
5252
5353
### `pushMessage(to: string, messages: Message | Message[]): Promise<{}>`
5454
55-
It corresponds to the [Push message](https://devdocs.line.me/en/#push-message) API.
55+
It corresponds to the [Push message](https://developers.line.me/en/docs/messaging-api/reference/#send-push-message) API.
5656
5757
The first argument is an ID of a receiver, and the second is messages to be sent.
5858
@@ -65,10 +65,10 @@ client.pushMessage('user_or_group_or_room_id', {
6565
6666
### `replyMessage(replyToken: string, messages: Message | Message[]): Promise<{}>`
6767
68-
It corresponds to the [Reply message](https://devdocs.line.me/en/#reply-message) API.
68+
It corresponds to the [Reply message](https://developers.line.me/en/docs/messaging-api/reference/#send-reply-message) API.
6969
7070
The first argument is a reply token, which is retrieved from a webhook event
71-
object. For the list of replyable events, please refer to [Webhook event object](https://devdocs.line.me/en/#webhook-event-object)
71+
object. For the list of replyable events, please refer to [Webhook event object](https://developers.line.me/en/docs/messaging-api/reference/#webhook-event-objects)
7272
of the official documentation. The second argument is the same with one in `pushMessage()`.
7373
7474
``` js
@@ -80,7 +80,7 @@ client.replyMessage(event.replyToken, {
8080
8181
### `multicast(to: string[], messages: Message | Message[]): Promise<{}>`
8282
83-
It corresponds to the [Multicast](https://devdocs.line.me/en/#multicast) API.
83+
It corresponds to the [Multicast](https://developers.line.me/en/docs/messaging-api/reference/#send-multicast-messages) API.
8484
8585
The first argument is a list of receiver IDs, and the second is messages to be
8686
sent.
@@ -94,7 +94,7 @@ client.multicast(['user_id_1', 'user_id_2', 'room_id_1'], {
9494
9595
### `getProfile(userId: string): Promise<Profile>`
9696
97-
It corresponds to the [Profile](https://devdocs.line.me/en/#bot-api-get-profile) API.
97+
It corresponds to the [Profile](https://developers.line.me/en/docs/messaging-api/reference/#get-profile) API.
9898
9999
The argument is a user ID.
100100
@@ -106,7 +106,7 @@ client.getProfile('user_id').then((profile) => {
106106

107107
### `getGroupMemberProfile(groupId: string, userId: string): Promise<Profile>`
108108

109-
It corresponds to the [Group/Room Member Profile](https://devdocs.line.me/en/#get-group-room-member-profile) API.
109+
It corresponds to the [Group Member Profile](https://developers.line.me/en/docs/messaging-api/reference/#get-group-member-profile) API.
110110

111111
The arguments are a group ID and an ID of a user in the group. Please refer to
112112
the official documentation for the difference between this API and `getProfile()`.
@@ -119,7 +119,7 @@ client.getGroupMemberProfile('group_id', 'user_id').then((profile) => {
119119

120120
### `getRoomMemberProfile(roomId: string, userId: string): Promise<Profile>`
121121

122-
It corresponds to the [Group/Room Member Profile](https://devdocs.line.me/en/#get-group-room-member-profile) API.
122+
It corresponds to the [Room Member Profile](https://developers.line.me/en/docs/messaging-api/reference/#get-room-member-profile) API.
123123

124124
The arguments are a room ID and an ID of a user in the room. Please refer to the
125125
official documentation for the difference between this API and `getProfile()`.
@@ -132,7 +132,7 @@ client.getRoomMemberProfile('room_id', 'user_id').then((profile) => {
132132

133133
### `getGroupMemberIds(groupId: string): Promise<string[]>`
134134

135-
It corresponds to the [Group/Room Member IDs](https://devdocs.line.me/en/#get-group-room-member-ids) API.
135+
It corresponds to the [Group Member IDs](https://developers.line.me/en/docs/messaging-api/reference/#get-group-member-user-ids) API.
136136

137137
*FYI: This feature is only available for LINE@ Approved accounts or official accounts.*
138138

@@ -146,7 +146,7 @@ client.getGroupMemberIds('group_id').then((ids) => {
146146

147147
### `getRoomMemberIds(roomId: string): Promise<string[]>`
148148

149-
It corresponds to the [Group/Room Member IDs](https://devdocs.line.me/en/#get-group-room-member-ids) API.
149+
It corresponds to the [Room Member IDs](https://developers.line.me/en/docs/messaging-api/reference/#get-room-member-user-ids) API.
150150

151151
*FYI: This feature is only available for LINE@ Approved accounts or official accounts.*
152152

@@ -160,7 +160,7 @@ client.getRoomMemberIds('room_id').then((ids) => {
160160

161161
### `getMessageContent(messageId: string): Promise<ReadableStream>`
162162

163-
It corresponds to the [Content](https://devdocs.line.me/en/#content) API.
163+
It corresponds to the [Content](https://developers.line.me/en/docs/messaging-api/reference/#get-content) API.
164164

165165
The argument is an ID of media messages, such as image, video, and audio. The ID
166166
can be retrieved from a message object of a message event.
@@ -183,7 +183,7 @@ client.getMessageContent('message_id')
183183

184184
### `leaveGroup(groupId: string): Promise<{}>`
185185

186-
It corresponds to the [Leave group](https://devdocs.line.me/en/#leave) API.
186+
It corresponds to the [Leave group](https://developers.line.me/en/docs/messaging-api/reference/#leave-group) API.
187187

188188
The argument is a group ID.
189189

@@ -193,7 +193,7 @@ client.leaveGroup('group_id')
193193

194194
### `leaveRoom(roomId: string): Promise<{}>`
195195

196-
It corresponds to the [Leave room](https://devdocs.line.me/en/#leave) API.
196+
It corresponds to the [Leave room](https://developers.line.me/en/docs/messaging-api/reference/#leave-room) API.
197197

198198
The argument is a room ID.
199199

docs/pages/api-reference/validate-signature.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ function validateSignature(
1717
it's encoded in UTF-8.
1818

1919
For more details about signature validation of LINE webhook, please refer
20-
to [the official documentation](https://devdocs.line.me/en/#webhooks).
20+
to [the official documentation](https://developers.line.me/en/docs/messaging-api/reference/#webhooks).

docs/pages/guide/client.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Client
22

33
Client is to send messages, get user or content information, or leave chats.
4-
A client instance provides functions for [messaging APIs](https://devdocs.line.me/en/#messaging-api),
4+
A client instance provides functions for [messaging APIs](https://developers.line.me/en/docs/messaging-api/reference/),
55
so that you do not need to worry about HTTP requests and can focus on data.
66
For type signatures of the methods, please refer to [its API reference](../api-reference/client.md).
77

docs/pages/guide/webhook.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ A webhook server for LINE messaging API is just a plain HTTP(S) server. When
44
there is a observable user event, an HTTP request will be sent to a
55
pre-configured webhook server.
66

7-
About configuration of webhook itself, please refer to [Webhook](https://devdocs.line.me/en/#webhooks)
7+
About configuration of webhook itself, please refer to [Webhook](https://developers.line.me/en/docs/messaging-api/reference/#webhooks)
88
of the official document.
99

1010
## What a webhook server should do
1111

12-
- [Signature validation](https://devdocs.line.me/en/#signature-validation)
13-
- [Webhook event object parsing](https://devdocs.line.me/en/#webhook-event-object)
12+
- [Signature validation](https://developers.line.me/en/docs/messaging-api/reference/#signature-validation)
13+
- [Webhook event object parsing](https://developers.line.me/en/docs/messaging-api/reference/#webhook-event-objects)
1414

1515
**Signature validation** is checking if a request is actually sent from real
1616
LINE servers, not a fraud. The validation is conducted by checking
17-
the [X-Line-Signature](https://devdocs.line.me/en/#signature-validation) header
17+
the [X-Line-Signature](https://developers.line.me/en/docs/messaging-api/reference/#signature-validation) header
1818
and request body. There is a [`validateSignature()`](../api-reference/validate-signature.md)
1919
function to do this.
2020

@@ -88,7 +88,7 @@ app.use(middleware(config))
8888
app.use('/webhook', middleware(config))
8989
```
9090

91-
The middleware will throw an exception when the [X-Line-Signature](https://devdocs.line.me/en/#signature-validation)
91+
The middleware will throw an exception when the [X-Line-Signature](https://developers.line.me/en/docs/messaging-api/reference/#signature-validation)
9292
header is not set. If you want to handle usual user requests, the middleware
9393
shouldn't be used for them.
9494

tools/webhook-tester/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
- Use configurable webhook URL and client secret
44
- Send event objects
5-
- Automatically set [X-Line-Signature](https://devdocs.line.me/en/#webhook-authentication)
5+
- Automatically set [X-Line-Signature](https://developers.line.me/ja/docs/messaging-api/reference/#signature-validation)
66

77
## How to use
88

tools/webhook-tester/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</head>
1212

1313
<h1>Webhook Tester</h1>
14-
<p>For webhook formats, please refer to <a href='https://devdocs.line.me/en/#webhooks'>the LINE API reference.</a></p>
14+
<p>For webhook formats, please refer to <a href='https://developers.line.me/ja/docs/messaging-api/reference/#webhooks'>the LINE API reference.</a></p>
1515

1616
<div id='events'>
1717
</div>

0 commit comments

Comments
 (0)