URL スキームによる自動化
For explanations of the x-success, x-error, x-cancel parameters see the x-callback-url Spec.
注: ユーザーが createXXX メソッドを呼び出して成功/失敗のコールバックを指定しない場合は、新規作成されたアイテムに残ります。
showBoard
ボードへのリンク
パラメーター:
ID: ボード ID
または
ショートリンク: ボードのショートリンク (次の有無にかかわらず利用可能: https://trello.com/b/ プレフィックス)
例:
<code>trello://x-callback-url/showBoard?x-source=MyTestApp&shortlink=81QRDHnt
showCard
カードへのリンク
パラメーター:
ID: カード ID
または
ショートリンク: カードのショートリンク (次の有無にかかわらず利用可能: https://trello.com/c/ プレフィックス)
例:
<code>trello://x-callback-url/showCard?x-source=MyTestApp&id=526e7338ffa7dfb94d0084a6
createBoard
新しいボードを作成します。成功、失敗、キャンセル コールバックをオプションでサポートします。
パラメーター:
必須:
name: ボードの名前
オプション:
組織: ボードを作成する組織の名前。
権限: 設定する権限 (非公開/公開/組織、初期設定: 非公開)
x-success: 成功時に呼び出す URL。新規作成されたボードのボード ID がパラメーター "id" として、ショートリンクのサフィックスが "shortlink" として返されます。
x-error: エラー コールバック
例:
<code>trello://x-callback-url/createBoard?name=My%20New%20Board&x-success=myapp%3A%2F%2Fsuccess& x-error=myapp%3A%2F%2Ffailure Breaks down to: Name = "My New Board" Success Callback = "myapp://success?id={new_board_id}&shortlink={new_board_shortlink}" Failure Callback = "myapp://failure?errorCode={error_code_here}&errorMessage={error_message_here}"
createCard
新しいカードを指定したボードに作成します。成功、失敗、キャンセル コールバックをオプションでサポートします。
パラメーター:
必須:
ID: ユーザーがカードを作成する権限を持つボードのボード ID
または
ショートリンク: ボードのショートリンク (次の有無にかかわらず利用可能: https://trello.com/b/ プレフィックス)
name: 新しいカードの名前
Optional:
description : The description text to attach to the card
list-id : id of the list within the specified board in which to insert the card (Default: First list)
use-pasteboard : Interpreted as a boolean (0, 1, "true", "false", etc.) that indicates whether the contents of the pasteboard should be included. All entries on the pasteboard will be attached to the resulting card if they fall under one of the following UTIs:
特殊 (このカスタム UTI のデータを提供する場合は、添付ファイルのファイル名として使用されます)
<code>com.fogcreek.attachment-name
イメージ タイプ
<code>public.jpeg public.png public.tiff com.microsoft.bmp com.compuserve.gif com.adobe.photoshop-image com.adobe.illustrator.ai-image
ドキュメント タイプ
<code>public.text com.adobe.pdf com.microsoft.word.doc org.openxmlformats.wordprocessingml.document com.microsoft.excel.xls org.openxmlformats.spreadsheetml.sheet com.microsoft.powerpoint.ppt org.openxmlformats.presentationml.presentation public.text public.plain-text public.utf8-plain-text public.utf16-external-plain-text public.utf16-plain-text public.rtf public.html public.xml
ソース コード タイプ
<code>public.c-source public.objective-c-source public.c-plus-plus-source public.objective-c-plus-plus-source public.c-header public.c-plus-plus-header com.sun.java-source com.apple.quicktime-movie
メディア タイプ
<code>public.mpeg public.mpeg-4 public.mp3 public.mpeg-4-audio com.microsoft.waveform-audio
x-success: 成功時に呼び出す URL。新規作成されたカードのカード ID がパラメーター "id" として、ショートリンクのサフィックスが "shortlink" として返されます。
x-error: エラー コールバック
例:
<code>trello://x-callback-url/createCard?shortlink={board_shortlink}&name=MyCardName&description=MyCardDescription This would create a card and leave the user on the card screen.
この内容はお役に立ちましたか?