Renewing API Account
to prevent abusers, every API user is needed to undergo verification process constantly. you can automate the process through api instead of doing it in the support server (opens in a new tab)
Account is still verifiable even when it is.not expired.
When your account is expired/non-active, the API will reject every requests from you. Renewing allows your account to stay active.
Method One
theres a rate limit in method one which you can only trigger this once every 21,600,000
milliseconds.
simply click Renew Account
in the panel menu from the support server (opens in a new tab) to renew
Method Two
This method requires the account to stay active, means that you have to use method one if the account is already expired.
you can automate the time wasting process by making a request to the API.
theres a limit on the endpoint, that is 172,800,000
milliseconds.
- using package (opens in a new tab):
- this requires the project to be stayed
connect()
/connected()
returnstrue
import { renewAccount } from "shockbs";
setInterval(async()=> {
console.log(await renewAccount());
}, 172860000); // calls /v1/account/renew every 2 days and 1 minute
- using
node-fetch
import fetch from "node-fetch";
setInterval(async()=> {
console.log((await fetch("https://api.shockbs.is-a.dev/v1/account/renew", {
method: "get",
headers: {
Authorization: `Bearer ${process.env.ShockToken}`,
Accept: "application/json",
"Content-Type": "application/json",
}
})).json());
}, 172860000); // calls /v1/account/renew every 2 days and 1 minute
Renewal Failed Situations
- your account isnt valid
- you are still on cooldown
- you are not in the support server (opens in a new tab), making us hard to verify your data
- you joined the server (opens in a new tab) less than 2 days ago, the renewals database still dosent have your data