コンテンツにスキップ

メールタグ検索

POST
/api_v1_master_mailtag/search
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d 'access_token=xxxxxx&refresh_token=xxxxxx&wait_flag=1&'fields=mail_tag_id,mail_tag_month,mail_tag_name,mail_tag_note,mail_tag_message1,mail_tag_message2,mail_tag_message3,mail_tag_message4,mail_tag_message5,mail_tag_message6,mail_tag_deleted_flag,mail_tag_creation_date,mail_tag_last_modified_date,mail_tag_last_modified_null_safe_date,mail_tag_creator_id,mail_tag_creator_name,mail_tag_last_modified_by_id,mail_tag_last_modified_by_null_safe_id,mail_tag_last_modified_by_name,mail_tag_last_modified_by_null_safe_name'&mail_tag_id-like='MyMailTag'&mail_tag_month-eq=2&offset=0&limit=2' https://api.next-engine.org/api_v1_master_mailtag/search
Media type application/x-www-form-urlencoded
object
access_token
required

OAuth2 アクセストークン (必須)

string
refresh_token

OAuth2 リフレッシュトークン (access_token 期限切れ時の自動更新に使用)

string
wait_flag

同期実行フラグ。“1” 指定で処理完了を待つ

string
Allowed values: 0 1
fields

取得するフィールドをカンマ区切りで指定 (search 系のみ)

string
offset

検索開始位置 (search 系のみ)

integer
limit

取得件数 (search 系のみ)

integer
>= 1

実行結果 (result が success / error / redirect のいずれか)

Media type application/json
object
result
required

実行結果ステータス

string
Allowed values: success error redirect
code

エラー時のエラーコード

string
message
One of:
string
access_token

更新後のアクセストークン

string
access_token_end_date

アクセストークン有効期限 (YYYY-MM-DD HH:MM:SS)

string
refresh_token

更新後のリフレッシュトークン

string
refresh_token_end_date

リフレッシュトークン有効期限

string
data

エンドポイント固有のレスポンスデータ

count

Count/search 系のヒット件数 (form-urlencoded レスポンスでは文字列で返ることがある)

integer | string
data
Array<object>
object
mail_tag_id

メールタグ / 文字列型

string | integer | number | boolean | null
mail_tag_month

対応月 / 数値型 / 0-12の値が設定される。0:メール送信月に対応する1-12の設定がない場合、適用される。1-12:メール送信月の1月~12月に対応する。

string | integer | number | boolean | null
mail_tag_name

メールタグ概要 / 文字列型

string | integer | number | boolean | null
mail_tag_note

メールタグ備考 / 文字列型

string | integer | number | boolean | null
mail_tag_message1

メッセージ1 / 文字列型 / メール送信時、メッセージ1~6の中からランダムにメッセージが選択される。

string | integer | number | boolean | null
mail_tag_message2

メッセージ2 / 文字列型

string | integer | number | boolean | null
mail_tag_message3

メッセージ1 / 文字列型

string | integer | number | boolean | null
mail_tag_message4

メッセージ2 / 文字列型

string | integer | number | boolean | null
mail_tag_message5

メッセージ1 / 文字列型

string | integer | number | boolean | null
mail_tag_message6

メッセージ2 / 文字列型

string | integer | number | boolean | null
mail_tag_deleted_flag

削除フラグ / 文字列型

string | integer | number | boolean | null
mail_tag_creation_date

作成日 / 日時型

string | integer | number | boolean | null
mail_tag_last_modified_date

最終更新日 / 日時型

string | integer | number | boolean | null
mail_tag_last_modified_null_safe_date

最終更新日 / 日時型 / NULLの場合作成日

string | integer | number | boolean | null
mail_tag_creator_id

作成担当者ID / 数値型

string | integer | number | boolean | null
mail_tag_creator_name

作成担当者名 / 文字列型

string | integer | number | boolean | null
mail_tag_last_modified_by_id

最終更新者ID / 数値型

string | integer | number | boolean | null
mail_tag_last_modified_by_null_safe_id

最終更新者ID / 数値型 / NULLの場合作成者ID

string | integer | number | boolean | null
mail_tag_last_modified_by_name

最終更新者名 / 文字列型

string | integer | number | boolean | null
mail_tag_last_modified_by_null_safe_name

最終更新者名 / 文字列型 / NULLの場合作成者名

string | integer | number | boolean | null
key
additional properties
any
Example
{
"result": "success",
"count": "1",
"data": [
{
"mail_tag_id": "MyMailTag",
"mail_tag_month": "2",
"mail_tag_name": "ok",
"mail_tag_note": "ok",
"mail_tag_message1": "ammamamamamamam",
"mail_tag_message2": "",
"mail_tag_message3": "",
"mail_tag_message4": "",
"mail_tag_message5": "",
"mail_tag_message6": "",
"mail_tag_deleted_flag": "0",
"mail_tag_creation_date": "2017-02-09 16:09:01",
"mail_tag_last_modified_date": null,
"mail_tag_last_modified_null_safe_date": "2017-02-09 16:09:01",
"mail_tag_creator_id": "10003",
"mail_tag_creator_name": "xxxxxxxx",
"mail_tag_last_modified_by_id": null,
"mail_tag_last_modified_by_null_safe_id": "10003",
"mail_tag_last_modified_by_name": null,
"mail_tag_last_modified_by_null_safe_name": "xxxxxxx"
}
],
"access_token": "xxxxxxxxxxx",
"access_token_end_date": "2017-04-13 18:24:53",
"refresh_token": "xxxxxxxxxxx",
"refresh_token_end_date": "2017-04-15 18:24:53"
}

クライアントエラー (HTTP ステータス自体は 200 + result=error で返ることが多い)

Media type application/json
object
result
required

実行結果ステータス

string
Allowed values: success error redirect
code

エラー時のエラーコード

string
message
One of:
string
access_token

更新後のアクセストークン

string
access_token_end_date

アクセストークン有効期限 (YYYY-MM-DD HH:MM:SS)

string
refresh_token

更新後のリフレッシュトークン

string
refresh_token_end_date

リフレッシュトークン有効期限

string
data

エンドポイント固有のレスポンスデータ

count

Count/search 系のヒット件数 (form-urlencoded レスポンスでは文字列で返ることがある)

integer | string
Example
{
"result": "success"
}