BIG-Games-LLC / ps99-public-api-docs

42 stars 4 forks source link

how can i recieve what goals are in current clan? #35

Open hxrizxnqq opened 3 months ago

hxrizxnqq commented 3 months ago

i see an interesting [site]( like https://sizzles.petsimulatorvalues.com/clan.php?clan=S7S), and i'll trying to do something like this but in discord. and i dont see any api where i can recieve that info and values i needed. i see that block, but i dont sure is it it

"Goals": [
          {
            "Type": 29,
            "Amount": 60,
            "Stars": 100,
            "Progress": 36,
            "Tier": 0,
            "Contributions": {
              "u1492905244": 1,
              "u722456679": 1,
              "u1181896365": 1,
              "u897042465": 2,
              "u1625494976": 1,
              "u3859137218": 2,
              "u138619446": 5,
              "u5105458194": 1,
              "u1377371452": 8,
              "u28496243": 1,
              "u3905500998": 1,
              "u4323360700": 3,
              "u3839686495": 2,
              "u563009058": 1,
              "u1584907518": 1,
              "u3252086229": 2,
              "u3340774830": 3
            }
          },
          {
            "Type": 25,
            "Amount": 2400,
            "Stars": 200,
            "Progress": 716,
            "Tier": 23,
            "Contributions": {
              "u5284012126": 10,
              "u90593260": 596,
              "u4323360700": 110
            }
          },
          {
            "Type": 44,
            "Amount": 300,
            "Stars": 300,
            "Progress": 270,
            "Tier": 330,
            "Contributions": {
              "u2930544773": 13,
              "u323075189": 1,
              "u3340774830": 2,
              "u1079820301": 2,
              "u3252086229": 28,
              "u1488764812": 3,
              "u2609999537": 2,
              "u4423311721": 30,
              "u5284012126": 6,
              "u5105458194": 38,
              "u2953589229": 11,
              "u5100879937": 29,
              "u768595442": 7,
              "u2773634792": 2,
              "u3859137218": 92,
              "u474518565": 1,
              "u2254242233": 1,
              "u939172140": 1,
              "u182931917": 1
            }
          },
          {
            "Type": 74,
            "Amount": 40,
            "Stars": 400,
            "Progress": 0,
            "Tier": 195,
            "Contributions": {

            }
          }
        ],
v1Pe04 commented 3 months ago

The "Type" values is what tells you what Goal it is... I personally has stored it in a db table with the type and the description and just fetch from that every time...

hxrizxnqq commented 3 months ago

image i already does it, thanks for reply

chickenputty commented 3 months ago

This info is not on the API yet. It can be found here - https://github.com/BIG-Games-LLC/ps99-public-api-docs/issues/15#issuecomment-2016065110

hxrizxnqq commented 3 months ago

This info is not on the API yet. It can be found here - https://github.com/BIG-Games-LLC/ps99-public-api-docs/issues/15#issuecomment-2016065110

yes, i do it with this information, but will be better when u get info about name and description directly in api