API Key: Difference between revisions
No edit summary |
No edit summary |
||
| Line 14: | Line 14: | ||
|} | |} | ||
|} | |} | ||
== Use == | |||
Provides access to secretInfo on the Zoo API. | |||
This relic is laughing stock when it comes to usability. It reveals the decimal of your embed colour, and timestamps of various events, such as your next shop credit or next rescue. The issue is this isn’t necessary in almost all scenarios, as the time is displayed in the bot. Additionally, self-botting is against Discord’s TOS, so you can’t use it to run a program that would act on this on your behalf. | |||
== Obtaining == | |||
As mentioned before, this requires sending a POST request to a specified endpoint. If you do not know how to do this, there are many services online that can teach you within a few minutes. A sample code is provided below if extremely necessary, but it is advised to do it without help as it could be a learning experience. | |||
⚠️You cannot get this relic if you don't own at least three other relics. | |||
API Key sample code (written with Python) | |||
<syntaxhighlight lang="python" line> | |||
import requests | |||
url = "https://gdcolon.com/zoo/api/zooKey" #endpoint | |||
headers = {"Content-Type": "application/json", "Accept": "application/json", "Token": ""} #request headers, insert authentication token into the Token header | |||
#id refers to your Discord User ID | |||
#password can be a few things (usually it's your public IP address/last 3 digits of your token). Leave blank at first to see the response | |||
params = {"id": "", "password": ""} | |||
response = requests.post(url, headers=headers, json=params) | |||
print(response.status_code) | |||
print(response.text) | |||
</syntaxhighlight> | |||
Revision as of 12:52, 11 February 2024
Introduction
The API Key is a unique relic unlocked by sending a POST request to a "secret" endpoint. It was the first relic added to have a unique unlock method other than through quests. You require 3 relics to unlock the cosmetic.
| Emoji | Name | Description | ||
|---|---|---|---|---|
| API Key |
| |||
Use
Provides access to secretInfo on the Zoo API.
This relic is laughing stock when it comes to usability. It reveals the decimal of your embed colour, and timestamps of various events, such as your next shop credit or next rescue. The issue is this isn’t necessary in almost all scenarios, as the time is displayed in the bot. Additionally, self-botting is against Discord’s TOS, so you can’t use it to run a program that would act on this on your behalf.
Obtaining
As mentioned before, this requires sending a POST request to a specified endpoint. If you do not know how to do this, there are many services online that can teach you within a few minutes. A sample code is provided below if extremely necessary, but it is advised to do it without help as it could be a learning experience.
⚠️You cannot get this relic if you don't own at least three other relics.
API Key sample code (written with Python)
import requests
url = "https://gdcolon.com/zoo/api/zooKey" #endpoint
headers = {"Content-Type": "application/json", "Accept": "application/json", "Token": ""} #request headers, insert authentication token into the Token header
#id refers to your Discord User ID
#password can be a few things (usually it's your public IP address/last 3 digits of your token). Leave blank at first to see the response
params = {"id": "", "password": ""}
response = requests.post(url, headers=headers, json=params)
print(response.status_code)
print(response.text)
