Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 360voice.com
 XML/APIs
 Get Challenge ID from Challenge Code
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

TX Eegras

22,426

Zone: Recreation

Total games played: 98

Current Streak: 0

Longest Streak: 51

Comments Made: 1,337

Senior Gamer

USA
994 Posts

Posted - May 04 2008 :  11:42:27 AM  Show Profile  Visit TX Eegras's Homepage  Reply with Quote
Is there a way to get the Challenge ID from the Challenge Code, or a way to get data from the Challenge.details XML with only the Challenge Code? Currently the only to get this ID is to log out of your gamertag, log in as someone else, and then attempt to join said challenge.

squidpunch

68,507

Zone: Recreation

Total games played: 313

Current Streak: 0

Longest Streak: 109

Comments Made: 1,337

360voice Staff

USA
1509 Posts

Posted - May 04 2008 :  4:08:22 PM  Show Profile  Visit squidpunch's Homepage  Reply with Quote
what exactly are you trying to do - i would say no, there isnt actually anything public in the API which relates the code and the challenge id - but what are you trying to do, it might be possible without this link?

since there really is no public link to a challenge code the only place i could see that you are picking it up is on the forums (or maybe your new gateway code?), if you were to look at the challenge details for the person promoting the challenge (assuming they are actually in said challenge) you can get the ID by getting challenge details by gamertag

http://www.360voice.com/api/challenge-details.asp?tag=squidpunch

is that the right direction at all, or do you really need something to translate join to challenge id?


*no squids were harmed in the creation or use of this gamertag
Check out the latest Friendcast! | 360friendspot.com | Squidpunch.com | larrabeefamily.com | madden-stats.com
Go to Top of Page

TX Eegras

22,426

Zone: Recreation

Total games played: 98

Current Streak: 0

Longest Streak: 51

Comments Made: 1,337

Senior Gamer

USA
994 Posts

Posted - May 04 2008 :  4:26:31 PM  Show Profile  Visit TX Eegras's Homepage  Reply with Quote
Yes, it's for my gateway code. I was thinking of just having the user paste the join URL into a text area so that it can automatically get the data from the XML feed.

I was thinking of using the challenge details feed to get the info I need from the challenge, but I was hoping for a faster way than waiting until the XML feeds are updated (same time as blogs?). I'll try this way for a bit, see how well it works.

The reason I thought it could be translated by Code->ID was that ID->Code would be silly as anyone could join any challenge.

Go to Top of Page

squidpunch

68,507

Zone: Recreation

Total games played: 313

Current Streak: 0

Longest Streak: 109

Comments Made: 1,337

360voice Staff

USA
1509 Posts

Posted - May 04 2008 :  7:02:37 PM  Show Profile  Visit squidpunch's Homepage  Reply with Quote
we might be able to cook something up for you, i just have to validate with the boys it wouldn't open up some sort of risk, or other reason we couldnt do it.

as far as using the challenge details the data you were looking for should be relatively current whenever you look at it - the current gains and stuff like that would be held to the standard update schedule but once a challenge is in place the title, etc is in the api.

just to validate this, i removed myself from the API challenge, refreshed the API and it went to the previous challenge i was in, now as i join back in, it again shows the API challenge information.

but if giving you something where you can get the challenge id for a valid code makes it smoother or easier (and there is no ill effects of doing so on our side) i am fine with giving you a service for that.




*no squids were harmed in the creation or use of this gamertag
Check out the latest Friendcast! | 360friendspot.com | Squidpunch.com | larrabeefamily.com | madden-stats.com
Go to Top of Page

Fshguy

345,921

Zone: Recreation

Total games played: 873

Current Streak: 944

Longest Streak: 944

Comments Made: 1,337

360voice Staff

USA
5325 Posts

Posted - May 04 2008 :  9:42:57 PM  Show Profile  Visit Fshguy's Homepage  Reply with Quote
Seems like if you already have a code, it wouldn't be risk to translate it into a challenge...

I did notice something wierd... challenges 6300 something to around 7800 are all empty challenges set up for last week's auto challenges. Might be a bug in the auto-challenge code...

Fish

Needs more Cowbell!!!!!
My Blog | Badge Calc | Voice Calendar
Go to Top of Page

squidpunch

68,507

Zone: Recreation

Total games played: 313

Current Streak: 0

Longest Streak: 109

Comments Made: 1,337

360voice Staff

USA
1509 Posts

Posted - May 06 2008 :  7:32:42 PM  Show Profile  Visit squidpunch's Homepage  Reply with Quote
the api has been updated so you can do any of the following now

http://www.360voice.com/api/challenge-details.asp?tag=[GAMERTAG]
http://www.360voice.com/api/challenge-details.asp?id=[CHALLENGEID]
http://www.360voice.com/api/challenge-details.asp?code=[JOINCODE]


*no squids were harmed in the creation or use of this gamertag
Check out the latest Friendcast! | 360friendspot.com | Squidpunch.com | larrabeefamily.com | madden-stats.com
Go to Top of Page

TX Eegras

22,426

Zone: Recreation

Total games played: 98

Current Streak: 0

Longest Streak: 51

Comments Made: 1,337

Senior Gamer

USA
994 Posts

Posted - May 07 2008 :  04:33:01 AM  Show Profile  Visit TX Eegras's Homepage  Reply with Quote
Oh sweet! Even better as it saves an API call. You guys are just great.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To:
360voice Community © 2006 360voice.com Go To Top Of Page
Snitz Forums 2000