Skip to content

Commit

Permalink
remove HDI
Browse files Browse the repository at this point in the history
  • Loading branch information
ihsangan committed Apr 30, 2024
1 parent 879e34e commit 4902041
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,5 @@ GET `aov?id=PLAYER_OR_OPEN_ID`
GET `cod?id=PLAYER_OR_OPEN_ID`

**Contoh:** https://api.isan.eu.org/nickname/cod?id=243402956362890880
### Higgs Domino Island
GET `hdi?id=PLAYER_ID`

**Contoh:** https://api.isan.eu.org/nickname/hdi?id=4700000
# Copyright
© Projek ini dibawah lisensi: [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/), tidak terafiliasi dengan Codashop
14 changes: 0 additions & 14 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,20 +157,6 @@ async function callAPI(request) {
let result = `{"success":true,"game":"Garena AOV (Arena of Valor)","id":${id},"name":"${data.confirmationFields.roles[0].role}"}`
return result
}
if (path.includes('/hdi')) {
const body = `voucherPricePoint.id=27571&voucherPricePoint.price=5000.0&voucherPricePoint.variablePrice=0&user.userId=${id}&voucherTypeName=HIGGS&shopLang=id_ID`
const request = new Request(endpoint, {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body
})
const response = await fetch(request)
const data = await response.json()
let result = `{"success":true,"game":"Higgs Domino Island","id":${id},"name":"${data.confirmationFields.username}"}`
return result
}
if (path.includes('/sus')) {
const body = `voucherPricePoint.id=266077&voucherPricePoint.price=10000.0&voucherPricePoint.variablePrice=0&user.userId=${id}&user.zoneId=&voucherTypeName=SUPER_SUS&shopLang=id_ID`
const request = new Request(endpoint, {
Expand Down

0 comments on commit 4902041

Please sign in to comment.