README
Voici l'API non-Officielle Utip
La réponse userProfil arrive quasiment instantanément selon votre connection.
La réponse utipInfo arrive 15s après la requete, cela est dû au délai de chargement de Utip, il est possible que cela vous donne null
, c'est que vous n'avez rien ou alors qu'Utip est trop lent et n'envoie pas les informations.
npm i utip.io
let utip = require('utip.io');
(async () => {
//let information = await utip.utipInfo('votreID', 'choix')
//let profil = await utip.userProfil('XeraFiu')
//exemple :
let information = await utip.utipInfo('c095b2e590d3832f45d66ab4ce5d38f9', 'balance')
console.log(information)
let profil = await utip.userProfil('XeraFiu')
console.log(profil)
let nrb_pub = await utip.pubCount('c095b2e590d3832f45d66ab4ce5d38f9')
console.log(nrb_pub)
})()
Liste des 'choix' pour utipInfo('id', 'choix') :
balance
goal-amount
goal-desc
last-donator
last-donation-amount
last-recurring-donation-amount
best-tipr-ever
best-tipr-amount-ever
last-buyer
last-bought-product
last-bought-product-amount
last-firetipr
oldest-firetip
higher-return-firetipr-donator
largest-donation-amount-ever
largest-donation-donator-ever
largest-donation-amount-session
largest-donation-donator-session
largest-recurring-donation-amount
largest-recurring-donation-donator
largest-buy-amount-ever
largest-buy-product-ever
largest-buy-donator-ever
largest-buy-donator-session
largest-buy-amount-session
largest-buy-product-session
last-30-days-income
current-month-income
last-created-product
last-created-product-price
number-of-subscribers
last-ads-message
Voici le type de réponse pour userProfil('nom')
{
"id": 64589,
"name": "XeraFiu",
"avatar": "https://cdn.utip.io/media/cache/website_logo_thumbnail_size_80/uploads/websites/5928b32942294c4acfadf7f0fc4bd5b172b24b13/logo-5eb038650ac08678941062.png",
"display": 1,
"initialDisplay": 1,
"displayAll": true,
"wWsKey": "xerafiu",
"isUserFireTipr": false,
"wAdsActivated": true,
"wDirectsActivated": true,
"currency": "EUR",
"isCreatorVerified": false,
"banner": "/images/christmas-backgrounds-Utip.jpg",
"description": "Fortnite | Discord",
"wMiningActivated": false,
"wUrl": "https://utip.io",
"nbFollowers": 0,
"userName": "XeraFiu",
"allowedSupports": { "ads": true, "mining": false, "payment": true, "shop": false },
"payment": { "tips": { "tip1": [Object], "tip2": [Object] }, "minimumPayment": 0.2 },
"stats": { "tiprNumber": -1, "nbFollowers": 0, "amountCounter": "false" },
"stateOfLives": { "chat-box": false, "counter": false, "msg": false, "tag": true },
"hasConnectSocialMedia": true,
"youtubeOauthToken": "1//091idmnutUazGCgYIARAAGAkSNwF-L9IroPyytMWeM5ZYER3KyG1j7S9n0iOssvJ5_C4r4SkIUJmn7l-chVvEtg9swJRlV2_g4Rk",
"hasConnectedOnlyTwitch": false
}
Si vous avez des erreurs sur linux, ceci peut régler le problème :
sudo apt-get install ca-certificates fonts-liberation gconf-service libappindicator1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils
Pseudo Discord : XeraFiu#3538
Discord Support : https://discord.gg/tvZGrXe