Deck of Cards (獨立發行者) (預覽版)
Deck of Cards 是一項網絡服務,可讓您從一副或多副牌中洗牌和抽牌。
此連接器適用於以下產品和區域:
| 服務 | Class | Regions |
|---|---|---|
| 副駕駛工作室 | 進階 | 除下列區域外的所有 Power Automate 區域 : - 美國政府 (GCC) - 美國政府(海灣合作委員會高中) - 由 21Vianet 營運的中國雲 - 美國國防部 (DoD) |
| 邏輯應用程式 | 標準 | 所有 Logic Apps 區域, 但下列區域除外: - Azure Government 區域 - Azure 中國區域 - 美國國防部 (DoD) |
| Power Apps | 進階 | 除下列區域外的所有 Power Apps 區域 : - 美國政府 (GCC) - 美國政府(海灣合作委員會高中) - 由 21Vianet 營運的中國雲 - 美國國防部 (DoD) |
| Power Automate(自動化服務) | 進階 | 除下列區域外的所有 Power Automate 區域 : - 美國政府 (GCC) - 美國政府(海灣合作委員會高中) - 由 21Vianet 營運的中國雲 - 美國國防部 (DoD) |
| 連絡人 | |
|---|---|
| 名稱 | 特洛伊·泰勒 |
| URL | https://www.hitachisolutions.com |
| ttaylor@hitachisolutions.com |
| 連接器中繼資料 | |
|---|---|
| Publisher | 特洛伊·泰勒 |
| 網站 | https://deckofcardsapi.com/ |
| 隱私策略 | https://deckofcardsapi.com/ |
| 類別 | 生活方式和娛樂 |
節流限制
| 名稱 | 呼叫 | 續約期間 |
|---|---|---|
| 每個連線的 API 呼叫 | 100 | 60 秒 |
動作
| 加入堆 |
將一張或多張牌添加到一堆中。 注意:不適用於多個甲板。 |
| 將牌放回牌組 |
將一張或多張牌放回牌組。 |
| 從堆中抽取 |
從一堆牌中抽一張或多張牌。 |
| 抽一張牌 |
從給定的牌組中抽一張或多張牌。 |
| 洗牌堆 |
洗牌給定的牌堆。 注意:不適用於多個牌組。 |
| 洗牌新套牌 |
如果需要,僅使用特定牌來洗牌給定牌組大小的新牌組。 |
| 重新洗牌 |
重新洗牌一副牌。 將剩餘設置為 true 只會洗牌主堆中剩餘的牌,而保留任何牌堆或抽牌。 |
加入堆
將一張或多張牌添加到一堆中。 注意:不適用於多個甲板。
參數
| 名稱 | 機碼 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
甲板 ID
|
deck_id | True | string |
套牌識別碼。 |
|
堆
|
pile_name | True | string |
堆名稱。 |
|
Cards
|
cards | True | string |
卡片做為逗號分隔的字串。 |
傳回
| 名稱 | 路徑 | 類型 | Description |
|---|---|---|---|
|
成功
|
success | boolean |
是否成功。 |
|
甲板 ID
|
deck_id | string |
套牌識別碼。 |
|
䩱
|
remaining | integer |
剩餘的數字。 |
將牌放回牌組
將一張或多張牌放回牌組。
參數
| 名稱 | 機碼 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
甲板 ID
|
deck_id | True | string |
套牌識別碼。 |
|
Cards
|
cards | True | string |
卡片做為逗號分隔的字串。 |
傳回
| 名稱 | 路徑 | 類型 | Description |
|---|---|---|---|
|
成功
|
success | boolean |
是否成功。 |
|
甲板 ID
|
deck_id | string |
套牌識別碼。 |
|
洗牌
|
shuffled | boolean |
是否洗牌。 |
|
䩱
|
remaining | integer |
剩餘的數字。 |
從堆中抽取
從一堆牌中抽一張或多張牌。
參數
| 名稱 | 機碼 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
甲板 ID
|
deck_id | True | string |
套牌識別碼。 |
|
堆
|
pile_name | True | string |
堆名稱。 |
|
Count
|
count | integer |
計數。 |
傳回
| 名稱 | 路徑 | 類型 | Description |
|---|---|---|---|
|
成功
|
success | boolean |
是否成功。 |
|
甲板 ID
|
deck_id | string |
套牌識別碼。 |
|
䩱
|
remaining | integer |
剩餘的數字。 |
|
Cards
|
cards | array of object | |
|
影像
|
cards.image | string |
圖像。 |
|
價值觀
|
cards.value | string |
值。 |
|
訴訟
|
cards.suit | string |
西裝。 |
|
Code
|
cards.code | string |
代碼。 |
抽一張牌
從給定的牌組中抽一張或多張牌。
參數
| 名稱 | 機碼 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
甲板 ID
|
deck_id | True | string |
套牌識別碼。 |
|
牌組數
|
count | integer |
甲板數量。 |
|
|
Cards
|
cards | True | string |
卡片做為逗號分隔的字串。 |
傳回
| 名稱 | 路徑 | 類型 | Description |
|---|---|---|---|
|
成功
|
success | boolean |
是否成功。 |
|
甲板 ID
|
deck_id | string |
套牌識別碼。 |
|
Cards
|
cards | array of object | |
|
Code
|
cards.code | string |
代碼。 |
|
影像
|
cards.image | string |
圖像。 |
|
SVG
|
cards.images.svg | string |
SVG 影像。 |
|
PNG
|
cards.images.png | string |
PNG 影像。 |
|
價值觀
|
cards.value | string |
值。 |
|
訴訟
|
cards.suit | string |
西裝。 |
|
䩱
|
remaining | integer |
剩餘的數字。 |
洗牌堆
洗牌給定的牌堆。 注意:不適用於多個牌組。
參數
| 名稱 | 機碼 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
甲板 ID
|
deck_id | True | string |
套牌識別碼。 |
|
堆
|
pile_name | True | string |
堆名稱。 |
傳回
| 名稱 | 路徑 | 類型 | Description |
|---|---|---|---|
|
成功
|
success | boolean |
是否成功。 |
|
甲板 ID
|
deck_id | string |
套牌識別碼。 |
|
䩱
|
remaining | integer |
剩餘的數字。 |
洗牌新套牌
如果需要,僅使用特定牌來洗牌給定牌組大小的新牌組。
參數
| 名稱 | 機碼 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
牌組數
|
deck_count | integer |
套牌計數。 |
|
|
Cards
|
cards | string |
卡片做為逗號分隔的字串。 |
傳回
| 名稱 | 路徑 | 類型 | Description |
|---|---|---|---|
|
成功
|
success | boolean |
是否成功。 |
|
甲板 ID
|
deck_id | string |
套牌識別碼。 |
|
洗牌
|
shuffled | boolean |
是否洗牌。 |
|
䩱
|
remaining | integer |
剩餘的數字。 |
重新洗牌
重新洗牌一副牌。 將剩餘設置為 true 只會洗牌主堆中剩餘的牌,而保留任何牌堆或抽牌。
參數
| 名稱 | 機碼 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
甲板 ID
|
deck_id | True | string |
套牌識別碼。 |
|
䩱
|
remaining | boolean |
剩餘的牌張數量。 |
傳回
| 名稱 | 路徑 | 類型 | Description |
|---|---|---|---|
|
成功
|
success | boolean |
是否成功。 |
|
甲板 ID
|
deck_id | string |
套牌識別碼。 |
|
洗牌
|
shuffled | boolean |
是否洗牌。 |
|
䩱
|
remaining | integer |
剩餘的數字。 |