![]() |
# 1 |
חבר מתקדם
|
![]() אהלן,
כבר הרבה זמן שאני מהסס ליצור התחברות דרך STEAM ותמיד המחשבה נזרקת ממני מכיוון שאני לא מבין את הנושא של OPENID ... אני לא ממש התעסקתי עם OPENID מעולם ואני לא יודע איך לפנות אל הנושא. כעקרון , VALVE מביאה את הדף הזה בלבד http://steamcommunity.com/dev ואיך שהוא אני לא ממש מבין מה צריך לעשות אשמח אם מישהו יכול לתת לי כיוון , איך להתחיל עם הנושא חיפשתי בגוגל מדריכים ומה לא , ולא הצלחתי למצוא.. כעקרון מה שאני רוצה לעשות זה התחברות דרך STEAM.. עם מה עלי להתחיל ולאיזה כיוון לפנות? תודה! |
![]() |
![]() |
# 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 שלהם.) |
![]() |
![]() |
# 3 | |
עסק רשום [?]
|
ציטוט:
פשוט לוקחים את ה JSON ומעבדים אותו באמצעות json_decode ופשוט מקבלים הכל בתוך מערכים... יותר קל להשתמש אחרכך כשזה בתוך מערכים. בהצלחה. |
|
![]() |
![]() |
# 4 | |
חבר בקהילה
|
ציטוט:
כמו הסיבה הלא ברורה למה יש חברות אחסון שעדיין משתמשים ב PHP 4.2 שיש היום 5.4. אבל בגדול אתה צודק ב-100%. |
|
![]() |
![]() |
# 5 | |
עסק רשום [?]
|
ציטוט:
אתר שבנוי ב PHP אני לא רואה שום סיבה שיאחסן את האתר על שרת שהוא פחות מ 5.2.0 לפחות... |
|
![]() |
![]() |
# 6 |
חבר מתקדם
|
@DoLet
תודה רבה עזר לי מאוד! אבל אני לא רואה את האופציה שניתן לעשות חיבור משתמש דרך STEAM לדוגמא: http://tf2b.com/ אתה יכול לראות באתר למעלה יש אפשרות להתחבר דרך STEAM הלכתי לקוד מקור וראיתי את זה: HTML קוד:
<a href="https://steamcommunity.com/openid/login?openid.ns=http://specs.openid.net/auth/2.0&openid.mode=checkid_setup&openid.return_to=http://tf2b.com/&openid.realm=http://tf2b.com/&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.identity=http://specs.openid.net/auth/2.0/identifier_select" ></a> איך אני יכול לעשות משהו זהה באתר שלי? בתודה, Last edited by morsrh; 02-05-12 at 18:20.. |
![]() |
![]() |
# 7 | |
חבר בקהילה
|
ציטוט:
שמע גם אני לא מכיר אתה רק צריך לקרוא: Steam OpenID Provider Steam can act as an OpenID provider. This allows your application to authenticate a user's SteamID without requiring them to enter their Steam username or password on your site (which would be a violation of the API Terms of Use.) Just download an OpenID library for your language and platform of choice and use http://steamcommunity.com/openid as the provider. The returned Claimed ID will contain the user's 64-bit SteamID. The Claimed ID format is: http://steamcommunity.com/openid/id/<steamid> Valve Brand and Links Each page that uses the Steam Web API must contain a link to http://steampowered.com with the text "Powered by Steam". We suggest that you put this link in your footer so it is out of the way but still visible to interested users. If you are using OpenID on your site, we request that you use one of the following buttons as your link to the Steam sign in page. These images represent the Steam brand to users, underscoring that Steam account credentials may be used to sign in to your site. http://steamcommunity.com/dev/apikey |
|
![]() |
![]() |
חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים) | |
|
|