71 Topics

Member Avatar for
Member Avatar for Dani

# What is OAuth and why do I want to use it? If you want to write an application that caters to existing members of a service, and you want your application to be able to access private areas of your end-users' profiles, or modify their accounts on their behalf, …

Member Avatar for diafol
4
1K
Member Avatar for Dani

I've recently switched our login mechanism, and our API, over to SSL (https:// vs http://) I am using the following: RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} danipad [NC,OR] RewriteCond %{REQUEST_URI} api [NC,OR] RewriteCond %{REQUEST_URI} members/join [NC,OR] RewriteCond %{REQUEST_URI} members/login [NC,OR] RewriteCond %{REQUEST_URI} members/edit_profile [NC,OR] RewriteCond %{REQUEST_URI} members/edit_membership [NC] RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} …

Member Avatar for Assembly Guy
0
796
Member Avatar for Dani

It's time yet again for a DaniWeb Developer Competition!! This time the goal is to utilize [our new API](http://www.daniweb.com/api/home) launched last month. There's a lot that you can do with our API. Essentially it allows your application (web, desktop, mobile, etc) to tap into DaniWeb's backend. Your own application can …

Member Avatar for Mike_danvers
4
3K
Member Avatar for Mike Askew

Been running a couple of article queries this morning. When running `http://www.daniweb.com/api/articles?forum_id=61` I encountered what looks like a bug. The 11th thread reply coming back in the query is the following: { "title":"please help me .........", "related":[ { "id":"" } ], "posters":[ { "id":"1098860" }, { "id":"46588" }, { "id":"1091071" …

Member Avatar for Mike Askew
1
403
Member Avatar for Mike Askew

Running Dani's profile as an example I get the JSON back containing: "education":[ { "key":"education", "value":"B.S. Computer Science", "organization":"Hofstra University", "start":"September 2000", "end":"December 2005", "description":"I majored in Computer Science and minored in Business Computer Information Systems. I was in Upsilon Pi Epsilon, the Computer Science Honor Society run by the …

Member Avatar for diafol
1
367
Member Avatar for pritaeas

I thought this was discussed somewhere, but I can't find the thread. I've updated my authorization to the one you gave me Dani. If I now start my DwArticleWatch after a while (about 2 hours, but unconfirmed) I get an error message that curl failed. I think the access token …

Member Avatar for Dani
0
361
Member Avatar for Dani

A few new OAuth-related API features. Firstly, there is now the concept of scope. So if you want to do things like spy on a member's private messages or chat on their behalf, you now need to pass in the required scope (details in API documentation) to ask for more …

Member Avatar for Dani
3
302
Member Avatar for Learner010

I don't know APIs? but i heard of Daniweb API. what it is ? Now i am playing with basic controls of vb.net but i hope after getting about API i'll be able to guess what kind of application i create in vb.net using Daniweb API? So , i won't …

Member Avatar for Dani
0
303
Member Avatar for Dani

# The nature of this tutorial ... This tutorial is designed to walk you through DaniWeb's implicit (clientside) OAuth flow. This is not designed to be an introductory tutorial to OAuth, and we will expect that you are already familiar with the nature of OAuth and/or have read our tutorial …

2
1K
Member Avatar for Mike Askew

As far as I can see, to develop applications using OAuth we need to own server space to host a site? An application, when registered to DaniWeb, requires a URL to be provided. A desktop application obviously doesn't have one of these. When sending OAuth requests we have to provide …

Member Avatar for Dani
1
633
Member Avatar for Dani

This was posted in a behind-the-scenes forum yesterday, but here it is for everyone today: There have been a LOT of changes so far, and more to come. Most of what's happened so far has dealt with OAuth. A lot more security on the backend and more in line with …

Member Avatar for Dani
2
308
Member Avatar for ~s.o.s~

Hi Dani, AFAIK OAuth 2.0 supports 3 flavours: Server side apps, client side apps and installed apps. Does Daniweb Oauth allow OOB in the redirect_uri which is part of the support for installed/standalone apps? If no, are you expecting desktop app writers to spawn a local web server and use …

Member Avatar for Dani
0
557
Member Avatar for pritaeas

Dani, if I get the following URL: http://www.daniweb.com/api/articles?page=1&orderby=firstpost&access_token=MY_TOKEN it returns the attached JSON result, which fails to `json_decode()`. Can you have a look please?

Member Avatar for Dani
0
290
Member Avatar for Dani

There is full read and write chat functionality now added to the API :) Who wants to write two-way IRC<-->DaniWeb Chat integration? ;) Any takers ... ?? You need an access token in order to post, but it's feasable if you create a new DaniWeb account named "IRC Bot" and …

Member Avatar for Reverend Jim
3
1K
Member Avatar for pritaeas

I have the following code: const AGENT = 'User Agent'; SERVER = 'www.daniweb.com'; RESOURCE = 'api/access_token'; ID = ''; // my client id SECRET = ''; // my client secret CODE = ''; // my returned code, pasted from the browser REDIRECT_URI = ''; // my redirect uri ACCEPT: packed …

Member Avatar for pritaeas
0
2K
Member Avatar for diafol

Would it be useful to have an update thread for when you make changes to the API structure for example. Did forum_id get changed from forumid or then to just id for certain forums (can_read)? My app stopped working and I couldn't work out why - then iterating over the …

Member Avatar for Dani
0
675
Member Avatar for pritaeas

Attached is the code for my RSS dashboard, using the DaniWeb API. It's an improved version of the mashup I posted earlier, using jQuery to get all feeds asynchronously. The part which initially loads the forums is shown below. It creates an API object, and a Parser object. The first …

Member Avatar for pritaeas
1
453
Member Avatar for Dani

Spiceworks, one of DaniWeb's advertisers, has just rolled out their DaniWeb API integration!! Check it out here: http://www.spiceworks.com/p/daniweb Please be sure to give suggestions :)

Member Avatar for BigPaw
4
300
Member Avatar for Labdabeta

Hello. I read about the daniweb api competition thing and I have an idea of what I want to create. I have never done anything webby before (aside from using dreamweaver to make websites) and I think its about time that I did! I am hoping that it is possible …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for bCubed

I don't know if there is a mobile app or mobile version for this site, but I have not seen one. I think it could work great if you could check to see if someone has answered your question from a mobile device or respond to someones answer. although you …

Member Avatar for Reverend Jim
2
547
Member Avatar for riahc3

Hello This is a demo showing Java interacting with Daniweb's new API ( http://www.daniweb.com/api/documentation ) You introduce a member's name and it should show you the total number of posts he has made. Demo is a proof of concept: No bug checking, error checking, etc is in this code. In …

Member Avatar for peter_budo
4
869
Member Avatar for riahc3
Member Avatar for pritaeas

http://www.daniweb.com/api/members/94719/articles?page=1&filter=watching&orderby=lastpost&access_token=MY_ACCESS_TOKEN I expected four results here, but it shows only watched articles started by me (two). I want all watched articles. What did I miss?

Member Avatar for pritaeas
0
202
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
480
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
186
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
424
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
530
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
452
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
535

The End.