331 Topics

Member Avatar for
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
432
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
556
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
455
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
563
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
550
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
173
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
558
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
209
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
266
Member Avatar for otengkwaku

I have been around not very long. I learn pretty much every thing i know about programing form the web and sites like daniweb helped a lot. comparing a site like daniweb and an other popular site stack overflow ... I will pick daniweb any day. for two main reason. …

Member Avatar for Ketsuekiame
3
665
Member Avatar for chriswelborn

I was trying to edit a post that I made earlier, and the "Edit Post" link brought up the text edit mode, but did not have any "Save" or "Submit". Only "Cancel". Also, the "Edit Post" button was still active. When I clicked it the second time it just "refreshed" …

Member Avatar for Dani
0
842
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 biswa2ray

I have created email account in my website(ex: info@mywebsite.com) to use it for sending clients feedback.please guide me in jsp code to solve problem.. and sorry for bothering!

Member Avatar for JorgeM
0
202
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
Member Avatar for fyra

Hi people. I have a remove function that should set a hide member of a node to 1 instead of actually remove the node. The function works well when I insert and remove top and tap respectively (both nodes have their hide member set to 1) but when I insert …

0
162
Member Avatar for salimajentli
Member Avatar for Yoink

Hi, I'm writing a simple program that runs a vending machine. I thought I had everything working fine untill I messed around with the money input some more. In my program I obviously compare money values and check to make sure the values match up exactly to buy an item. …

Member Avatar for Yoink
0
528
Member Avatar for happygeek

Am just editing a news story ([How to disable SIM-killing USSD PUK attack that has spread to all Androids](http://www.daniweb.com/software-development/mobile-development/news/436119/how-to-disable-sim-killing-ussd-puk-attack-that-has-spread-to-all-androids#post1873145)) and cannot upload accompanying image. Get the following: "A problem was encountered while attempting to move the uploaded file to the final destination."

Member Avatar for Ancient Dragon
0
2K
Member Avatar for amir.geva.98

There is an interesting project on KickStarter that is close to successfully funding. I'm not the owner of the project, but I'm backing it and would be disappointed to see it fail. Please see if you would like to participate: http://www.kickstarter.com/projects/Musopen/open-source-bug-tracking

-2
118
Member Avatar for kevinjam

computer startes up in the morning then shuts down ,then trys to start again after the third time it comes on ..goes great all day but when i am playing crysis ,for no reason it will will boot itself,,iam running intel i5 2320-at 3.00 ghz.. i have a nzxt phanton …

Member Avatar for kevin2s
0
201
Member Avatar for dereknewland

What, in your opinion, is the best route to becoming a network engineer these days? Here are some observations on why I am asking this: - Software Defined Networking: With SDN becoming supported by so many vendors and implementations by large companies, it seems that it is surely going to …

Member Avatar for goatnetworking
0
286
Member Avatar for diafol

Been wondering why there's been so much necroposting recently - and not from your usual fly-byers or scum-spammers either. Could it be anything to do with the 'Related Article' above the editor? Having clicked on a few of these, it took me to articles at least 3 years old. Any …

Member Avatar for ~s.o.s~
0
194
Member Avatar for mike_2000_17

Hi, There is a bug with the editor that I noticed and others noticed too. When you post a very long code segment (or maybe just a long post, period), at some point it seems to overflow the capacity of the editor and you can no longer scroll all the …

Member Avatar for Dani
0
281
Member Avatar for mike_2000_17

Hi, I've been experiencing a weird bug in the editor (for a week or so). If I write a post, everything is fine and dandy until I start a block of code. From the first line of code that I write, and for every subsequent line of code after that, …

Member Avatar for Dani
1
562
Member Avatar for rileyganimator

Does the human question disappear after you get enough posts or something because I don't see the human check anymore...

Member Avatar for rileyganimator
0
108
Member Avatar for pritaeas

Was just searching, had 'pagination' in 'PHP forum'. Got plenty of results back, but when I added the filter to show only 'discussion threads', there were no results at all.

Member Avatar for Dani
0
300

The End.