![]() |
# 2 |
חבר בקהילה
|
תתחיל מהבחירה של XML או JSON...
אני מאמין שXML. הAPI שלהם מאוד פשוט יחסית. דוגמא שהם נותנים GetNewsForApp: http://api.steampowered.com/ISteamNe...300&format=xml באותו מידה אתה יכול לשנות את הGET של FORMAT לJSON. הם רושמים בברור: All API calls take the form http://api.steampowered.com/<interface name>/<method name>/v<version>/?key=<api key>&format=<format> appid AppID of the game you want the news of. count How many news enties you want to get returned. maxlength Maximum length of each news entry. format Output format. json (default), xml or vdf. כל זה רק מלהסתכל על העמוד שלהם. לקבל פרטים על יוזר GetPlayerSummaries: https://developer.valvesoftware.com/...es_.28v0002.29 בגדול הם מסבירים דיי בברור אתה רק צריך לעשות את ההמרה של הXML / JSON לקוד שלך. במידה ואתה עובד עם PHP: http://php.net/manual/en/book.simplexml.php בהצלחה מקווה שהצלחתי לעזור. (לא יצא לי לעבוד עם הAPI שלהם.) |
![]() |
חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים) | |
|
|