From 7c590f54664e77d8a86e620aeb10532e3936ae86 Mon Sep 17 00:00:00 2001 From: daffainfo Date: Sat, 6 Nov 2021 09:41:04 +0700 Subject: [PATCH] Add 3 apikey information --- Authentication/Stytch.md | 83 ++++++++++++++++++++++++++++++++++++++++ Blockchain/Covalent.md | 63 ++++++++++++++++++++++++++++++ Blockchain/Etherscan.md | 44 +++++++++++++++++++++ Blockchain/README.md | 6 +++ README.md | 32 ++++++++++++++-- 5 files changed, 224 insertions(+), 4 deletions(-) create mode 100644 Authentication/Stytch.md create mode 100644 Blockchain/Covalent.md create mode 100644 Blockchain/Etherscan.md create mode 100644 Blockchain/README.md diff --git a/Authentication/Stytch.md b/Authentication/Stytch.md new file mode 100644 index 0000000..4118b73 --- /dev/null +++ b/Authentication/Stytch.md @@ -0,0 +1,83 @@ +# [Stytch](https://stytch.com/docs/) + +## __Description__ +User infrastructure for modern applications + +## __Example Request__ +* Curl +``` +curl --request POST \ + --url https://test.stytch.com/v1/users \ + -u 'PROJECT ID:SECRET' \ + -H 'Content-Type: application/json' \ + -d '{ + "email": "test@stytch.com" + }' +``` + +* Raw +``` +POST /v1/users HTTP/1.1 +Authorization: Basic UFJPSkVDVCBJRDpTRUNSRVQ= +Host: test.stytch.com +Content-Type: application/json +Content-Length: 28 + +{"email": "test@stytch.com"} +``` + +## __Response__ +* Success + + If the email not exists +``` +{ + "email_id":"xxxxxxxxxxxx", + "phone_id":"", + "request_id":"xxxxxxxxxxxx", + "status":"active", + "status_code":201, + "user_id":"xxxxxxxxxxxx" +} +``` + + If the email exists +``` +{ + "status_code":400, + "request_id":"x","error_type":"duplicate_email", + "error_message":"A user with the specified email already exists for this project.", + "error_url":"https://stytch.com/docs/api/errors/400" +} +``` +* Error +``` +{ + "status_code":401, + "request_id":"request-id-test-b2001541-53b3-4faa-b7c0-915d2199c9fc", + "error_type":"unauthorized_credentials", + "error_message":"Unauthorized credentials.", + "error_url":"https://stytch.com/docs/api/errors/401" +} +``` + +## __Regex__ +* Project ID +``` +project-.*-[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12} +``` +* Secret Token +``` +secret-.*-[a-zA-Z0-9-_=]{36} +``` + +## __Example key__ +* Project ID +``` +project-test-c8267d84-db73-5b90-b8c4-e17b456857b8 +``` +* Secret Token +``` +secret-test-wQZjAsRqcO6z-ac1M5t3WfuRy9C_rcFXQ-Y= +secret-test-o1dsqZWeKkX4YSnIspz_LKGjiNFBMMeRJPo= +``` diff --git a/Blockchain/Covalent.md b/Blockchain/Covalent.md new file mode 100644 index 0000000..9ab998d --- /dev/null +++ b/Blockchain/Covalent.md @@ -0,0 +1,63 @@ +# [Covalent](https://www.covalenthq.com/docs/api/) + +## __Description__ +Multi-blockchain data aggregator platform + +## __Example Request__ +* Curl +``` +curl -X GET "https://api.covalenthq.com/v1/3/address/balances_v2/?&key=YOURAPIKEY" -H "Accept: application/json" +``` + +* Raw +``` +GET /v1/3/address/balances_v2/?&key=YOURAPIKEY HTTP/1.1 +Host: api.covalenthq.com +Accept: application/json +``` + +## __Response__ +* Success +``` +{ + "address": "string", + "updated_at": "1970-01-01T00:00:00.000Z", + "next_update_at": "1970-01-01T00:00:00.000Z", + "quote_currency": "string", + "uniswap_v2": { + "balances": [ + { + "token_0": { + "contract_decimals": 0, + "contract_ticker_symbol": "string", + "contract_address": "string", + "logo_url": "string", + "balance": 0, + "quote": 0.5, + "quote_rate": 0.5 + } + ... + } + ] + } +} +``` +* Error +``` +{ + "data":null, + "error":true, + "error_message":"Invalid API key", + "error_code":401 +} +``` + +## __Regex__ +``` +ckey_[a-z0-9]{27} +``` + +## __Example API key__ +``` +ckey_9c452a7xxxxxxb94832cxxxffff +``` \ No newline at end of file diff --git a/Blockchain/Etherscan.md b/Blockchain/Etherscan.md new file mode 100644 index 0000000..7feb95f --- /dev/null +++ b/Blockchain/Etherscan.md @@ -0,0 +1,44 @@ +# [Etherscan](https://docs.etherscan.io/) + +## __Description__ +Ethereum explorer API + +## __Example Request__ +* Curl +``` +curl -X GET "https://api.etherscan.io/api?module=account&action=balance&address=0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae&tag=latest&apikey=YOURAPIKEY" +``` + +* Raw +``` +GET /api?module=account&action=balance&address=0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae&tag=latest&apikey=YOURAPIKEY HTTP/1.1 +Host: api.etherscan.io +``` + +## __Response__ +* Success +``` +{ + "status":"1", + "message":"OK", + "result":"374868436783144397866641" +} +``` +* Error +``` +{ + "status":"1", + "message":"OK-Missing/Invalid API Key, rate limit of 1/5sec applied", + "result":"374868436783144397866641" +} +``` + +## __Regex__ +``` +[A-Z0-9]{34} +``` + +## __Example API key__ +``` +47ZBD9SAWKNN6XYB6A92V4GMCC741VYV37 +``` \ No newline at end of file diff --git a/Blockchain/README.md b/Blockchain/README.md new file mode 100644 index 0000000..1d46ce4 --- /dev/null +++ b/Blockchain/README.md @@ -0,0 +1,6 @@ +# Authentication +List of Blockchain API + +## Index +* [Covalent](Covalent.md) +* [Etherscan](Etherscan.md) \ No newline at end of file diff --git a/README.md b/README.md index 76a1d0c..a93b4d1 100644 --- a/README.md +++ b/README.md @@ -13,24 +13,48 @@ Detailed information about API ![](https://img.shields.io/github/last-commit/daffainfo/all-about-api) ## Index -* __[Animals](Anime)__ +
+Animals + * [IUCN](Animals/IUCN.md) * [TheCatApi](Animals/TheCatApi.md) -* __[Anime](Anime)__ +
+
+Anime + * [AniAPI](Anime/AniAPI.md) * [MyAnimeList](Anime/MyAnimeList.md) -* __[Anti-Malware](Anti-Malware)__ +
+
+Anti-Malware + * [AbuseIPDB](Anti-Malware/AbuseIPDB.md) * [AlienVault Open Threat Exchange (OTX)](Anti-Malware/AlienVault%20Open%20Threat%20Exchange.md) * [Google Safe Browsing](Anti-Malware/Google%20Safe%20Browsing.md) * [URLScan.io](Anti-Malware/URLScan.md) * [VirusTotal](Anti-Malware/VirusTotal.md) -* __[Art-Design](Art-Design)__ +
+
+Art-Design + * [Cooper Hewitt](Art-Design/Cooper%20Hewitt.md) * [Dribbble](Art-Design/Dribbble.md) * [Europeana](Art-Design/Europeana.md) * [IconFinder](Art-Design/IconFinder.md) * [Rijksmuseum](Art-Design/Rijksmuseum.md) +
+
+Athentication + + * [Micro User Service](Authentication/Micro%20User%20Service.md) + * [Stytch](Authentication/Stytch.md) +
+
+BlockChain + + * [Covalent](BlockChain/Covalent.md) + * [Etherscan](Blockchain/Etherscan.md) +
## References - [public-apis](https://github.com/public-apis/public-apis) (APIs list to be added to this repository)