From 84dcdfb8c3d1bb0f6b7fddafaff243cc925770eb Mon Sep 17 00:00:00 2001 From: daffainfo Date: Tue, 4 Jan 2022 22:19:58 +0700 Subject: [PATCH] Add 5 apikey information --- Cloud Storage - File Sharing/Dropbox.md | 11 +--- Cloud Storage - File Sharing/ddownload.md | 2 +- Cryptocurrency/Alchemy.md | 50 +++++++++++++++++ Cryptocurrency/BitcoinAverage.md | 57 ++++++++++++++++++++ Cryptocurrency/Block.md | 48 +++++++++++++++++ Cryptocurrency/Blockchain.md | 65 +++++++++++++++++++++++ Cryptocurrency/Coinlayer.md | 54 +++++++++++++++++++ 7 files changed, 276 insertions(+), 11 deletions(-) create mode 100644 Cryptocurrency/Alchemy.md create mode 100644 Cryptocurrency/BitcoinAverage.md create mode 100644 Cryptocurrency/Block.md create mode 100644 Cryptocurrency/Blockchain.md create mode 100644 Cryptocurrency/Coinlayer.md diff --git a/Cloud Storage - File Sharing/Dropbox.md b/Cloud Storage - File Sharing/Dropbox.md index a24a3f1..1e5902c 100644 --- a/Cloud Storage - File Sharing/Dropbox.md +++ b/Cloud Storage - File Sharing/Dropbox.md @@ -48,13 +48,4 @@ sl.[a-zA-Z0-9_-]{136} ## __Example API key__ ``` sl.ONOIUgObmbrgsga1kBI-q4NrS_R2cplbTe6zF9ImkQbiR7reMEke4Pcc_hhDtj7uGeEwGB5RmDKQrYclvhvQOkcPBWHRtkBqVabX5_gEhM-y_ZkXDtTQmUrK8gVq8j8YIIl9w8_B -``` - - - - - -If berhasil: - - -If gagal: +``` \ No newline at end of file diff --git a/Cloud Storage - File Sharing/ddownload.md b/Cloud Storage - File Sharing/ddownload.md index c89462f..5dba946 100644 --- a/Cloud Storage - File Sharing/ddownload.md +++ b/Cloud Storage - File Sharing/ddownload.md @@ -50,5 +50,5 @@ Host: api-v2.ddownload.com ## __Example API key__ ``` -of3ab02f3xd12ldofxc3fo +of3ab02f3xd12ldofxc3fodadsadadad ``` \ No newline at end of file diff --git a/Cryptocurrency/Alchemy.md b/Cryptocurrency/Alchemy.md new file mode 100644 index 0000000..0591e3b --- /dev/null +++ b/Cryptocurrency/Alchemy.md @@ -0,0 +1,50 @@ +# [Alchemy](https://docs.alchemy.com/alchemy/) + +## __Description__ +Ethereum Node-as-a-Service Provider + +## __Example Request__ +* Curl +``` +curl -XPOST "https://eth-mainnet.alchemyapi.io/v2/{{token}}" -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":0}' +``` + +* Raw +``` +POST /v2/{{token}} HTTP/1.1 +Host: eth-mainnet.alchemyapi.io +Content-Type: application/x-www-form-urlencoded +Content-Length: 63 + +{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":0} +``` + +## __Response__ +* Success +``` +{ + "jsonrpc": "2.0", + "id": 0, + "result": "0x000000" +} +``` +* Error +``` +{ + "jsonrpc": "2.0", + "id": 0, + "error": { + "code": -32000, + "message": "Must be authenticated!" + } +} +``` +## __Regex__ +``` +[a-zA-Z0-9-]{32} +``` + +## __Example API key__ +``` +ACf3vvsAUFQ6V4q2ODDDiCf3vvsAsA-a +``` diff --git a/Cryptocurrency/BitcoinAverage.md b/Cryptocurrency/BitcoinAverage.md new file mode 100644 index 0000000..3f14356 --- /dev/null +++ b/Cryptocurrency/BitcoinAverage.md @@ -0,0 +1,57 @@ +# [BitcoinAverage](https://apiv2.bitcoinaverage.com/) + +## __Description__ +Digital Asset Price Data for the blockchain industry + +## __Example Request__ +* Curl +``` +curl 'https://apiv2.bitcoinaverage.com/exchanges/ticker/bitstamp' -H 'x-ba-key: {{token}}' +``` + +* Raw +``` +GET https://apiv2.bitcoinaverage.com/exchanges/ticker/bitstamp HTTP/1.1 +Host: apiv2.bitcoinaverage.com +x-ba-key: {{token}} +``` + +## __Response__ +* Success +``` +{ + "name": "bitstamp", + "display_name": "Bitstamp", + "url": "https://bitstamp.net/", + "timestamp": 00000000, + "data_source": "api", + "symbols": { + "ETHUSD": { + "ask": 0000.00000000, + "bid": 0000.00000000, + "last": 0000.000000, + "high": 0000.000000, + "low": 000.0000000, + "open": 0000.000000, + "vwap": 0000.000000, + "volume": 000.000000, + "exchange_symbol": "ETHUSD" + }, +``` +* Error +``` +Api key does not exist {'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'} +``` +or if expired +``` +Your plan has expired. Go to https://pro.bitcoinaverage.com/pages/auth/my-plan to active or extend your plan. +``` +## __Regex__ +``` +[a-zA-Z0-9]{43} +``` + +## __Example API key__ +``` +NzI0MjM4Njc1NGQ3NDU4Mzg1NWU3YYmU4MTdiMaADwS +``` diff --git a/Cryptocurrency/Block.md b/Cryptocurrency/Block.md new file mode 100644 index 0000000..b7097bb --- /dev/null +++ b/Cryptocurrency/Block.md @@ -0,0 +1,48 @@ +# [Block](https://www.block.io/docs/basic) + +## __Description__ +Bitcoin Payment, Wallet & Transaction Data + +## __Example Request__ +* Curl +``` +curl 'https://block.io/api/v2/get_balance/?api_key={{token}}' +``` + +* Raw +``` +GET /api/v2/get_balance/?api_key={{token}} HTTP/1.1 +Host: block.io +``` + +## __Response__ +* Success +``` +{ + "status": "success", + "data": { + "network": "BTC", + "available_balance": "0.00000000", + "pending_received_balance": "0.00000000" + } +} +``` +* Error +``` +{ + "status": "fail", + "data": { + "error_message": "API Key invalid or you have not enabled API access for this machine's IP address(es). Check that your API Keys are correct, and that you have enabled API access for this machine's IP Address(es) on your account's Settings page.", + "connecting_ip": "127.0.0.1" + } +} +``` +## __Regex__ +``` +[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4} +``` + +## __Example API key__ +``` +17b5-7e2c-10f1-9eea +``` diff --git a/Cryptocurrency/Blockchain.md b/Cryptocurrency/Blockchain.md new file mode 100644 index 0000000..d9a6733 --- /dev/null +++ b/Cryptocurrency/Blockchain.md @@ -0,0 +1,65 @@ +# [Blockchain](https://www.blockchain.com/api) + +## __Description__ +Bitcoin Payment, Wallet & Transaction Data + +## __Example Request__ +* Curl +``` +curl 'https://api.blockchain.com/v3/exchange/accounts' -H 'X-API-Token: {{token}}' +``` + +* Raw +``` +GET /v3/exchange/accounts HTTP/1.1 +Host: api.blockchain.com +X-API-Token: {{token}} +``` + +## __Response__ +* Success +``` +{ + "primary": [ + { + "currency": "BTC", + "balance": 0.00366963, + "available": 0.00266963, + "balance_local": 38.746779155, + "available_local": 28.188009155, + "rate": 10558.77 + } + ], + "additionalProp1": [ + { + "currency": "BTC", + "balance": 0.00366963, + "available": 0.00266963, + "balance_local": 38.746779155, + "available_local": 28.188009155, + "rate": 10558.77 + } + ], + ... +} +``` +* Error +``` +{ + "timestamp":"2022-01-04T15:08:26.723+00:00", + "status":401, + "error":"Unauthorized", + "message":"", + "path":"/accounts" +} +``` + +## __Regex__ +``` +[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[0-9a-f]{12} +``` + +## __Example API key__ +``` +da3ec69e-bdc3-8f07-b5e3-6521c026d4be +``` \ No newline at end of file diff --git a/Cryptocurrency/Coinlayer.md b/Cryptocurrency/Coinlayer.md new file mode 100644 index 0000000..de4ae07 --- /dev/null +++ b/Cryptocurrency/Coinlayer.md @@ -0,0 +1,54 @@ +# [Coinlayer](https://coinlayer.com/documentation) + +## __Description__ +Real-time Crypto Currency Exchange Rates + +## __Example Request__ +* Curl +``` +curl 'https://api.coinlayer.com/live?access_key={{token}}' +``` + +* Raw +``` +GET /live?access_key={{token}} HTTP/1.1 +Host: api.coinlayer.com +``` + +## __Response__ +* Success +``` +{ + "success":true, + "terms":"https:\/\/coinlayer.com\/terms", + "privacy":"https:\/\/coinlayer.com\/privacy", + "timestamp":1641304507, + "target":"USD", + "rates":{ + "ABC":00.00, + "ACP":0.000000, + "ACT":0.006995, + ... + } +} +``` +* Error +``` +{ + "success":false, + "error":{ + "code":101, + "type":"invalid_access_key", + "info":"You have not supplied a valid API Access Key. [Technical Support: support@apilayer.com]" + } +} +``` +## __Regex__ +``` +[a-z0-9]{32} +``` + +## __Example API key__ +``` +of3ab02f3xd12ldofxc3fodadsadadad +```