4 Replies - 13708 Views - Last Post: 10 October 2010 - 10:42 PM Rate Topic: -----

#1 Sergio Tapia  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1258
  • View blog
  • Posts: 4,168
  • Joined: 27-January 10

Is there a list of what the API offers?

Posted 08 October 2010 - 07:53 AM

I'm making a C# library wrapper for the DIC api, but I can't seem to find what it offers.

Is there a wiki or something?
Is This A Good Question/Topic? 0
  • +

Replies To: Is there a list of what the API offers?

#2 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon

Reputation: 2965
  • View blog
  • Posts: 11,222
  • Joined: 15-July 08

Re: Is there a list of what the API offers?

Posted 08 October 2010 - 08:45 AM

All the API is at this time is a few XML queries. Here is what Core says about it.

View PostCore, on 01 July 2010 - 03:37 AM, said:

The Dream.In.Code XML API is available via the following calls:

http://www.dreaminco.../forums/xml.php
The XML representation of the homepage

http://www.dreaminco...php?showforum=1
Lists the data for a specific forum. The data is only available via IDs, so you need to know those before executing the call.

http://www.dreaminco...php?showuser=34
Displays the data about a specific user. Also, only operates with IDs (member names cannot be passed to this method). Member IDs are visible in the address bar in your browser when you view a member's profile.

http://www.dreaminco...howtopic=179566
Shows replies in a topic, as well as some basic user information.

Was This Post Helpful? 1
  • +
  • -

#3 Shane Hudson  Icon User is offline

  • D.I.C Technophile
  • member icon

Reputation: 345
  • View blog
  • Posts: 1,286
  • Joined: 06-December 09

Re: Is there a list of what the API offers?

Posted 09 October 2010 - 09:10 AM

It might be worth making a library that - for now - offers things that the API itself cannot do as well as what it can. Things that can be done by parsing the html rather than the xml, or logging in and posting.
Was This Post Helpful? 0
  • +
  • -

#4 Sergio Tapia  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1258
  • View blog
  • Posts: 4,168
  • Joined: 27-January 10

Re: Is there a list of what the API offers?

Posted 10 October 2010 - 04:58 PM

That's a cool idea; I'll tackle parsing the xml responses first.

Edit: The XML has some errors though.

http://www.dreaminco.../forums/xml.php gives me the following error:

Quote

XML Parsing Error: not well-formed
Location: http://www.dreaminco.../forums/xml.php
Line Number 140, Column 27:



http://www.dreaminco...howtopic=179566 gives me:

Quote

XML Parsing Error: mismatched tag. Expected: </img>.
Location: http://www.dreaminco...howtopic=179566
Line Number 44, Column 114:


Tried on Google Chrome, Firefox and Opera with same results.

This post has been edited by Sergio Tapia: 10 October 2010 - 05:01 PM

Was This Post Helpful? 0
  • +
  • -

#5 Core  Icon User is offline

  • using System.Linq;
  • member icon

Reputation: 782
  • View blog
  • Posts: 5,101
  • Joined: 08-December 08

Re: Is there a list of what the API offers?

Posted 10 October 2010 - 10:42 PM

We are aware of the XML errors. A possible workaround might be released soon.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1