For those of you who remember, the old DaniWeb API went away over the summer when we switched to the Dazah platform. We have a new little API launched now to access articles/posts. However, you can now use Dazah to connect with the entire DaniWeb community. https://www.daniweb.com/welcome/api

Member Avatar
Member Avatar
+1 forum 4

Hi, Unfortunately all of the Dazah integration stuff with DaniWeb is taking *much* longer than anticipated. I'm still working to try to get it out for you guys, but it's just taking a really long time. That being said, now that the concept of a Dazah login has kind of settled in, for the most part, do you find it a very poor experience, indifferent, etc.? I know you guys aren't really seeing the full benefits of Dazah quite yet, but I just want to make sure that it's not a *worse* experience than without it.

Member Avatar
Member Avatar
+0 forum 30

Calculate the product of two numbers without using the multiiplication (*) operator. Consider the sample output. Enter 1st number: 2 Enter 2nd number: 2 Product: 4

Member Avatar
Member Avatar
+0 forum 1

Hey everyone, Sorry that private messaging is still down. It's one of the main features that is being implemented through Dazah. Unfortunately, it wasn't until sticking it into a production environment when I realized that its performance is subpar and the algorithms need a major overhaul. That's what I've been spending most of today on, and hopefully I should be done by the end of tomorrow or Saturday.

Member Avatar
Member Avatar
+2 forum 21

What's the current status of the API following the update to tags? For searching, can ony see: `http://www.daniweb.com/api/articles/search?query=blah` which gives the same results regardless of the query text (and the 'members' equivalent, which seems to work). Was there not a tags endpoint before? Can't remember. Anyhow, was thinking of a side project with the API, but I don't want to start if it's not working as expected. For example, as the PHP forum no longer exists, I was trying to get articles with 'PHP' in them, but got a lot of junk. Thanks.

Member Avatar
Member Avatar
+1 forum 13

This is an important notification that DaniWeb is in the process of being upgraded, and will most likely be down and/or in read-only mode for the remainder of th is evening. When it comes back up, it *may* be buggy ... we'll see. I've rewritten every single line of code from the ground up over the past 4 months.

Member Avatar
+1 forum 0

Is anybody developing an Android App for DaniWeb? If nobody is, I'm planning on doing so, and if someone wants to participate, you'll be welcome. If someone is developing, and wants help, I'd like to participate. Cheers. Ps.: I was not sure if I should post this here or in Community Feedback, if this is the case, please move the post.

Member Avatar
Member Avatar
+0 forum 29

# 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, then you need OAuth. OAuth allows your application to automatically detect which member is using it without the member having to share anything about themselves. Additionally, it allows your application to authenticate itself to a service API with the member credentials of an end-user who is using it, without the …

Member Avatar
Member Avatar
+4 forum 8

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} [R=301,L] My problem is that there are third-party applications that still make POST requests to the api (specifically, to retrieve an access token as part of the OAuth process). The problem is that 301 redirects do not preserve POST data. What kind of workaround can I implement that requires all …

Member Avatar
Member Avatar
+0 forum 8

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 use DaniWeb's login mechanism, you can write a native mobile app for DaniWeb, you can create your own completely unique front-end for the site, there really are limitless possibilities. Unlike previous programming contests on DaniWeb which judged submissions based on style of code, efficiency, etc., this competition will be based …

Member Avatar
Member Avatar
+4 forum 168

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" } ], "uri":"http:\/\/www.daniweb.com\/software-development\/csharp\/threads\/472052\/please-help-me-", "id":"472052", "forum":{ "id":"61" }, "replies_count":"2", "views_count":"20", "first_post":{ "timestamp":"1390849755", "id":"2060455", "poster":{ "username":"0914541592", "id":"1098860" }, "raw_message":"2.\tAn integer greater than 1 is said to be prime if it is divisible by only 1 and itself. For example, 2, 3, 5 and 7 are prime numbers, but 4, 6, 8 and …

Member Avatar
Member Avatar
+1 forum 6

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 ACM and IEEE. I TA'ed multiple Computer Science courses and also worked as a private tutor. I almost double-minored in chemistry and subsequently won an award from the American Chemical Society. I founded DaniWeb my sophomore year of college after getting frustrated that I was one of the few department …

Member Avatar
Member Avatar
+1 forum 20

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 has timed out at that point (or the session associated with it). If I reload the authorization page, and go back to the watch, it works again. Do I need to implement a refresh method? Looks like it breaks earlier then the mentioned 24 hours.

Member Avatar
Member Avatar
+0 forum 4

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 than just basic privileges. Also, members can go to their profile to see exactly what outstanding access tokens exist for their accounts, in the same place as they can deauthorize. Also, long requested feature ... You can now change your secret token and delete existing applications.

Member Avatar
Member Avatar
+3 forum 1

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 overload this thread by asking How to use APIs in vb.net. first i will understand what daniweb api is ? then create new thread for how to use it in vb.net so i can play with it. thanks.

Member Avatar
Member Avatar
+0 forum 8

# 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 on [Getting started with OAuth 2.0 Explicit Flow](http://www.daniweb.com/web-development/php/tutorials/469804/getting-started-with-oauth-2.0-explicit-flow). The implicit flow allows you to acquire an access token and access the API entirely from within a browser-based javascript application. While this tutorial is specific to DaniWeb's API, we do adhere to OAuth standards, and so the flow should not be …

Member Avatar
+2 forum 0

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 a redirect URL on the domain we registered the application too, therefore if we dont have the domain as its a desktop application, we cant OAuth, correct? Only way round figured on the IRC was to own web space to allow a page on a webserver as intermediairy for the …

Member Avatar
Member Avatar
+1 forum 25

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 standards. For the most part, the changes have been transparent, but there are a few things I'll bring to your attention. Firstly, as you know, the end user authorizes the application and gives you a code. You can then exchange that code for an access_token. One of the changes is …

Member Avatar
Member Avatar
+2 forum 1

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 the serverside flow?

Member Avatar
Member Avatar
+0 forum 21

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
Member Avatar
+0 forum 6

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 have everything posted from the IRC channel posted by the bot (perhaps the message can be preceded by the nick in parentheses or some such).

Member Avatar
Member Avatar
+3 forum 77

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 array [0..1] of LPWSTR = (PChar('*/*'), nil); HEADER = 'Content-Type: application/x-www-form-urlencoded'; DATA: UTF8String = 'code=' + CODE + '&client_id=' + ID + '&client_secret=' + SECRET + '&redirect_uri=' + REDIRECT_URI; function GetUrl: string; var hHttp, hInet, hRequest: HINTERNET; i, bufferLen: Cardinal; buffer: array [0..1023] of AnsiChar; begin hInet := InternetOpen(PChar(AGENT), INTERNET_OPEN_TYPE_PRECONFIG, …

Member Avatar
Member Avatar
+0 forum 2

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 json, I noticed the change in name?

Member Avatar
Member Avatar
+0 forum 43

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 gets the forums list in JSON format, the second the extracts all forums to create the initial empty div's. A static method to a decorator function is passed, which adds the actual markup. The Parser and Decorator classes are in the zip file, so I won't discuss those here. If …

Member Avatar
Member Avatar
+1 forum 9

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
Member Avatar
+4 forum 7

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 for me to use the daniweb api to make a kind of editor in c++. I want to use c++ because it is what I am most familiar in, if it is overly complicated in c++ please tell me what language it wouldn't be complicated in. Anyways I just want …

Member Avatar
Member Avatar
+0 forum 5

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 couldnt do the codding from a mobile device, but I think it could be a good idea. Any thoughts?

Member Avatar
Member Avatar
+2 forum 15

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 order to make this work you need the Jersey library. Download here: http://jersey.java.net/nonav/documentation/latest/chapter_deps.html#core_client Any comments, bugs, glitches, etc, please say and Ill look into it.

Member Avatar
Member Avatar
+4 forum 11

RestSharp library needed

Member Avatar
Member Avatar
+4 forum 16

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
Member Avatar
+0 forum 1

The End.