48 Topics

Member Avatar for
Member Avatar for Dani

The very early workings of an API ... http://www.daniweb.com/api/documentation Any ideas churning??

Member Avatar for Dani
6
3K
Member Avatar for diafol

Just asking about the relevancy/meaning of 'page' in requests based on 'members'. e.g. http://www.daniweb.com/api/members?page= http://www.daniweb.com/api/members/{:IDS}?page= When used in this manner, I seem to get a random bunch of members (when not set to 1), regardless of IDS. How many members/page ?

Member Avatar for diafol
1
481
Member Avatar for Dani

I know I promised not to make anymore drastic changes to the API, but ... well ... I lied. The two API write operations (voting on posts and watching/unwatching articles) used to always respond with a JSON object in the format success: true or success: false Now, they return the …

2
187
Member Avatar for pritaeas

Here's my base class and class for the unauthenticated DaniWeb API calls. Not every method has all features implemented yet, and it's not been fully tested either. Here's how to start using it: include 'DwApiBase.class.php'; include 'DwApiOpen.class.php'; $dwapi = new DwApiOpen(); $result = $dwapi->GetMemberActivityPoints(94719); $result = $dwapi->GetMemberEndorsements(94719); $result = $dwapi->GetMemberReputationComments(94719); …

Member Avatar for pritaeas
2
427
Member Avatar for diafol

OK, as promised, here's an updated 'quick(!) and dirty' class for retrieving and setting data via the Daniweb API. It allows the extraction of data based around: # DATA RETRIEVAL & SETTING # ## non-OAuth ## * forums * articles * posts * members * activity points * endorsements * …

Member Avatar for LastMitch
2
543
Member Avatar for diafol

# As of 4/4/2013 # This class has now been updated and posted here: http://www.daniweb.com/web-development/php/code/451674/all-in-one-daniweb-api-class# # ORIGINAL POST # This code can be used to retrieve a forum list with various options with regard to display. This class could be extended for articles, posts, etc etc. The retrieval methods include …

Member Avatar for diafol
3
454
Member Avatar for pritaeas

## RSS Class ## The code snippet is a PHP class for retrieving RSS feeds from the DaniWeb website. There are two exposed methods, one for retrieving the list of predefined article types, and another to get a specific RSS feed. If you pass parameters to this method, there is …

Member Avatar for pritaeas
1
549
Member Avatar for pritaeas

## API Mashup ## This example is a mashup of [diafol's class](http://www.daniweb.com/web-development/php/code/451428/daniweb-api-class-for-getting-forums), [Dani's parsing code](http://www.daniweb.com/api/documentation) and [my class](http://www.daniweb.com/web-development/php/code/451390/daniweb-api-rss-class). It uses diafol's dwAPI class to retrieve a list of all forums, loops through them, and uses my Rss class to get the respective RSS feeds. It will show each forum in …

Member Avatar for diafol
0
548
Member Avatar for pritaeas

Wondering if, and if so where, I can revoke an authorization for an API client. It would be quite useful for testing if I can revoke it, to test and debug the application flow. Now the only possibility (AFAIK) is to add a new application.

Member Avatar for Dani
0
147
Member Avatar for pritaeas

The docs page for the DW API is off in IE10 (Win8), in Opera it works fine. Screenshot attached. ![ie10layout](/attachments/large/0/ie10layout.jpg "ie10layout")

Member Avatar for pritaeas
0
172
Member Avatar for pritaeas

Wasn't sure yet whether to post this publicly. I've adjusted the PHP code snippet for the OAuth. Curl allows you to trap a redirect and this snippet just shows how to do that for the token. The regex searches for the redirect url in the returned header, it can be …

Member Avatar for pritaeas
2
557
Member Avatar for diafol

Had a good few hours over the last few days. So playing with the API and decided to do a custom badge thing. http://dw.diafol.org/en/dw-badge/ Needs some work, but concept seems to be OK.

Member Avatar for diafol
1
208
Member Avatar for diafol

Hi all, following a chat with Dani, I'm just posting an example of a jQuery OAuth implementation. Major updates to come over the next weeks and months, but it's a start. I'll be publishing the code once I've cleaned it up and de-noobified it somewhat. :) http://dw.diafol.org/

Member Avatar for Dani
0
265
Member Avatar for Mike Askew

Been playing with the API a fair bit now in terms of writing a C# port of it. I tend to convert everything returned in JSON to an XmlDocument before manipulating it (Simply because I don't actually know how else to handle it within C#) However if I run any …

Member Avatar for diafol
0
275
Member Avatar for Mike Askew

More of a request than a question really, is it possible to update the API documentation to show **all** possible returned fields from a query? For example the member query example using Dani does not show the fact the user could return a linkedin field in the social media section. …

Member Avatar for Mike Askew
0
179
Member Avatar for diafol

While checking last_post timestamp in the returned json, I noticed a discrepancy of around 5 hours of the 'now' time and a 'just posted' time. AFAIK unix timestamp is UTC - so constant and timezone independent. Are DW timestamps modified to EST or have I messed up **again** with my …

Member Avatar for diafol
0
230
Member Avatar for diafol

Ok, in response to this post: http://www.daniweb.com/community-center/daniweb-community-feedback/threads/447545/we-have-an-api-/14#post1938157 Regarding the output of http://jsonviewer.stack.hu/#http://www.daniweb.com/api/forums/descendants Go to viewer and look at array item 4 Also array item 5 -> items 5, 6. Looks odd.

Member Avatar for diafol
0
437
Member Avatar for cwarn23

Hi, I'm creating a tutorial + repository website where the tutorials are free for the public to look at but the repository is not. However I am developing a login system that I want to sync with daniwebs login system. I have developed a curl system where the user can …

Member Avatar for riahc3
1
756

The End.