Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 360voice.com
 XML/APIs
 Using the XML feed on a website:

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List Insert Smilie
   
Message:

* HTML is OFF
* Forum Code is ON

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
award123 Posted - Sep 25 2006 : 3:03:44 PM
Does any have a good example (code) of how to take the XML data and present it on the web site? I would like to have the XBOX360 blog on my site and not redirect the end user to 360voice.com. I have no issues in giving the credit on the web site but I would like to format accordingly.

Any help is appreciated.
20   L A T E S T    R E P L I E S    (Newest First)
Da Bajan King Posted - Feb 12 2007 : 6:00:01 PM
thass cool it is amazing wat can be done on the pc

roellive Posted - Jan 29 2007 : 4:58:19 PM
@award123: I was talking to BoonKo, because his questions are not specific :)

Here's an VB.NET example

'declare variables
Dim gamerTag as string = "RoelLive"
Dim myWebRequest As WebRequest
Dim myWebResponse As WebResponse
Dim myXml As New XmlDocument

'create webrequest
myWebRequest = WebRequest.Create(String.Concat("http://www.360voice.com/api/games-listfav.asp?tag=", gamerTag))
myWebRequest.Method = "GET"

'get response
myWebResponse = myWebRequest.GetResponse()

'load response into xmlobject
myXml.Load(myWebResponse.GetResponseStream())


After the myXml.Load action checkout myXml.outerxml it will contain the XML from 360voice.com

I'm not using XSL at the moment, so that's not in the example right now.

When using this code, make sure you also use the following imports

Imports System.Xml
Imports System.Net

award123 Posted - Jan 29 2007 : 2:58:49 PM
I apologize about the "laziness" but though I know how to code I don't really....I have tried many times to consume some of this wonderful data for my web site. Can someone shoot me off some example code in .NET or ASP that I can look at and change (code that references these APIs and not Flickr)? The biggest issue I have is around XML formatting and displaying the information. Really confused on how to do this. So a complete code set (does not need to be pretty) would help me out.

Thanks!
roellive Posted - Jan 29 2007 : 12:43:09 PM
Maybe you should google around a bit, and after that come up with "real questions", nofi btw,...

In code, either ASP, PHP, or .NET you should do a GET httprequest or a GET xmlhttprequest. When you specify the correct 360 Voice API URL it will return the data you requested. After that it's up to you how you work with this data.
Boonko Posted - Jan 29 2007 : 08:09:01 AM
I know ASp!
ChangeAgent Posted - Jan 28 2007 : 11:09:20 AM
quote:
Originally posted by Boonko

Damn.... I dont really get this!!!

I am so Noob!



Well, you really just have to understand a development language and then it all starts to make sense. The services are just a standard way of delivering data. People can take that standard format and transform it using a technology called XSLT to produce HTML which browsers can render.

But being able to do all that first starts with knowing a language like .NET, or ASP, PHP, etc.



- ChangeAgent's Xbox Can Blog
- Trapper Markelz Can Blog
- I have a gamer history... do you?
Boonko Posted - Jan 28 2007 : 07:42:52 AM
Damn.... I dont really get this!!!

I am so Noob!

NviperO Posted - Dec 17 2006 : 10:04:52 AM
Awesome, thanks :)


KonsoliFIN.net - A Finnish Gaming Community
ChangeAgent Posted - Dec 16 2006 : 9:56:25 PM
Looks good enough for an API Samurai badge!



- ChangeAgent's Xbox Can Blog
- Trapper Markelz Can Blog
- I have a gamer history... do you?
porschephiliac Posted - Dec 15 2006 : 3:48:17 PM
Looks good!

The one, the only...
NviperO Posted - Dec 14 2006 : 7:01:18 PM
I've used PHP on my site and had little difficulties applying example scripts since server where my site is on runs still PHP4 and what I understand PHP5 offers far better tools for XML parsing.

Anyways I found a script that I managed to make work on my site with little changes. Mainly it had just little things that I had to change so it would show out nice XHTML 1.1. I also had a problem with encoding, since Viva Piņata didn't show properly but I just fixed that with some gum and glue. :)

Turned out well enough for me: http://www.nvipero.net/index.php?s=4

Now that I found list of available web services, I'll surely add some new things there. :)


KonsoliFIN.net - A Finnish Gaming Community
porschephiliac Posted - Dec 08 2006 : 5:23:42 PM
I sent it out, thanks!

The one, the only...
ChangeAgent Posted - Dec 08 2006 : 5:16:45 PM
quote:
Originally posted by porschephiliac

Awesome! First try!! Do I get the API Samurai Badge?



Email me so I don't forget. I can't do it from work.



- ChangeAgent's Xbox Can Blog
- Trapper Markelz Can Blog
- I have a gamer history... do you?
porschephiliac Posted - Dec 08 2006 : 4:30:46 PM
Awesome! First try!! Do I get the API Samurai Badge?

The one, the only...
ChangeAgent Posted - Dec 08 2006 : 3:45:29 PM
Looks right to me!



- ChangeAgent's Xbox Can Blog
- Trapper Markelz Can Blog
- I have a gamer history... do you?
porschephiliac Posted - Dec 08 2006 : 2:23:02 PM
Alright, I was able to do this, but is it right?:

http://www.freewebs.com/porschephiliac/360voiceblogarchive.htm

The one, the only...
porschephiliac Posted - Dec 08 2006 : 1:57:15 PM
I added the blog script to my page thanks to this topic!

I am extemely new to this whole thing, but I would also like to add the whole blog to my webpage, but I have no idea where to start...

and all this confuses me...

Help?

The one, the only...

ChangeAgent Posted - Sep 25 2006 : 3:30:24 PM
That is why I wrote the one for Flickr. I was digging around and never found a good explanation, so I put one together so that any other time I needed to consume XML, I had a good foundation in place.



- ChangeAgent's Xbox Can Blog
- Trapper Markelz Can Blog
- I have a gamer history... do you?
award123 Posted - Sep 25 2006 : 3:23:21 PM
THANK YOU!! This helps out a ton. I was not sure where to start but this helps. I think the toughtest part will be creating the XSL accordingly. When I have this done I will post back up for others...thanks again!

quote:
Originally posted by ChangeAgent
Check out this tutorial I wrote about using the Flickr API. I use the same code when consuming the 360voice services:

http://www.tjmweb.com/flickrapi.asp



- ChangeAgent's Xbox Can Blog
- Trapper Markelz Can Blog
- I have a gamer history... do you?

ChangeAgent Posted - Sep 25 2006 : 3:19:26 PM
Check out this tutorial I wrote about using the Flickr API. I use the same code when consuming the 360voice services:

http://www.tjmweb.com/flickrapi.asp



- ChangeAgent's Xbox Can Blog
- Trapper Markelz Can Blog
- I have a gamer history... do you?

360voice Community © 2006 360voice.com Go To Top Of Page
Snitz Forums 2000