Prime API(v2)
1分間あたり60回のアクセス制限があります。
1分間あたり60回以上のアクセスがあった場合の処理は、実行されません。
GET/api/v2/users
{{APP_URL}}/api/v2/users
lineユーザの一覧を取得します。
lineユーザの更新日時で絞り込む場合、after 及び beforeというクエリ文字列が利用できます。
例) /api/v2/users?after=20190712T100000&before=20190911T180000
2019/7/12 10:00:00 〜 2019/9/11 18:00:00 の間に更新されているlineユーザを抽出可能。
期間条件指定パラメータ
プロフィール項目値一致条件パラメータ
AUTHORIZATIONBearer Token
Token
Example Request
/api/v2/users?after=20191005T100000
200 OK
Example Response
Server
Content-Type
Transfer-Encoding
Connection
X-Powered-By
Cache-Control
Date
X-RateLimit-Limit
X-RateLimit-Remaining
GETユーザ情報取得 登録者番号指定
{{APP_URL}}/api/v2/users/{{USER_ID}}
ユーザIDをキーに、lineユーザの情報を取得します。
AUTHORIZATIONBearer Token
Token
Example Request
/api/v2/users/{USER_ID}
200 OK
Example Response
Server
Content-Type
Transfer-Encoding
Connection
X-Powered-By
Cache-Control
Date
X-RateLimit-Limit
X-RateLimit-Remaining
GETユーザ情報取得 Line指定
{{APP_URL}}/api/v2/users/{{LINE_ID}}
lineユーザIDをキーに、lineユーザの情報を取得します。
AUTHORIZATIONBearer Token
Token
Example Request
/api/v2/users/{LINE_ID}
200 OK
Example Response
Server
Content-Type
Transfer-Encoding
Connection
X-Powered-By
Cache-Control
Date
X-RateLimit-Limit
X-RateLimit-Remaining
PUTプロフィール項目更新 登録者番号指定
{{APP_URL}}/api/v2/users/{{USER_ID}}/profiles
USER_IDで特定したlineユーザのプロフィール項目を更新するAPI
AUTHORIZATIONBearer Token
Token
HEADERS
Content-Type
Bodyraw
Example Request
/api/v2/users/{USER_ID}/profiles
200 OK
Example Response
Server
Content-Type
Transfer-Encoding
Connection
X-Powered-By
Cache-Control
Date
X-RateLimit-Limit
X-RateLimit-Remaining
POSTプロフィール項目更新 複数指定
{{APP_URL}}/api/v2/batch/users/profiles
複数のlineユーザープロフィールを更新するAPI
- Bodyに指定する
usersオブジェクトのidにはユーザーIDもしくはLINE IDを指定することができます。 - 存在しないユーザーIDもしくはLINE IDを指定するとエラーとなり処理は行われません。
- forceパラメーターにtrueを設定すると、存在しないユーザーIDを指定しても無視します。
AUTHORIZATIONBearer Token
Token
Bodyraw (json)
Example Request
/api/v2/batch/users/profiles
Example Response
No response headers
This request doesn't return any response headers
GET/api/v2/profiles
{{APP_URL}}/api/v2/profiles
設定しているプロフィール項目の一覧を取得します。
AUTHORIZATIONBearer Token
Token
Example Request
/api/v2/profiles
200 OK
Example Response
Server
Content-Type
Transfer-Encoding
Connection
X-Powered-By
Cache-Control
Date
X-RateLimit-Limit
X-RateLimit-Remaining
GET/api/v2/tags
{{APP_URL}}/api/v2/tags
設定済みのタグ一覧を取得します。
タグフォルダー情報も一緒に取得します。
AUTHORIZATIONBearer Token
Token
Example Request
/api/v2/tags
200 OK
Example Response
Server
Content-Type
Transfer-Encoding
Connection
X-Powered-By
Cache-Control
Date
X-RateLimit-Limit
X-RateLimit-Remaining
POST/api/v2/tags
{{APP_URL}}/api/v2/tags
タグフォルダーとタグを生成します。
AUTHORIZATIONBearer Token
Token
HEADERS
Accept
Content-Type
Bodyraw (json)
Example Request
/api/v2/tags
200 OK
Example Response
Server
Content-Type
Transfer-Encoding
Connection
X-Powered-By
Cache-Control
Date
X-RateLimit-Limit
X-RateLimit-Remaining
POSTタグ付与 登録者番号指定
{{APP_URL}}/api/v2/users/{{USER_ID}}/tags/{{TAG_ID}}
特定のlineユーザに特定のタグを付与するためのAPI
AUTHORIZATIONBearer Token
Token
Example Request
/api/v2/users/{USER_ID}/tags/{TAG_ID}
200 OK
Example Response
Server
Content-Type
Transfer-Encoding
Connection
X-Powered-By
Cache-Control
Date
X-RateLimit-Limit
X-RateLimit-Remaining
GET一斉配信APIテンプレート一覧API
{{APP_URL}}/api/v2/broadcast_mail?page=1
APIテンプレートの一覧を100件単位で返します。
PARAMS
page
Example Request
一斉配信APIテンプレート一覧API
200 OK
Example Response
Server
Content-Type
Transfer-Encoding
Connection
X-Powered-By
Cache-Control
Date
GET一斉配信APIテンプレート詳細API
{{APP_URL}}/api/v2/broadcast_mail/{{TEMPLATE_ID}}
APIテンプレートの詳細を返します。
contentsはそのAPIテンプレートで置換可能なキー一覧です。
Example Request
一斉配信APIテンプレート詳細API
200 OK
Example Response
Server
Content-Type
Transfer-Encoding
Connection
X-Powered-By
Cache-Control
Date