195 Topics

Member Avatar for
Member Avatar for ~s.o.s~

***Please don't post "spam" or "Thank you" posts in this thread since this is meant to be used as a guide for all beginners and I am sure we would like it to be on topic. I hope you understand this.*** **» Introduction to Java «** To start off, [Java](http://en.wikipedia.org/wiki/Java_(programming_language)) …

Member Avatar for ~s.o.s~
46
6K
Member Avatar for lorenzoDAlipio

I need to know how many people are interested in learning how to write a desktop application using PHP? If I get enough interest on this topic, then I will write a simple tutorial on how its done. We (veedeoo and me) were experimenting on Desktop apps utilizing the [Daniweb …

Member Avatar for diafol
3
257
Member Avatar for sairam1592

Hello Friends, I am new to DANIWEB. I am from chennai,India. I am trying an android app(UI is over, this technical part alone is kinda complex because i am just starting my android app development) to fetch the place names i provide in textbox and show the distance between them …

Member Avatar for peter_budo
0
467
Member Avatar for AleMonteiro

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 …

Member Avatar for Bandarigoda123
0
330
Member Avatar for Lee_7

Hi, I'm trying to working with the Tripletex API. Also see our topic : http://www.daniweb.com/web-development/php/threads/444996/tripletex-with-php When i tried log in, It's ok. and response an array. But the problem is : in the header of this response, i can not see any cookie, session about my log in. So i …

Member Avatar for Lee_7
0
170
Member Avatar for iFrolox

Well, in my previous thread i needed help deleting arrays, for the codes i use its here: http://www.daniweb.com/software-development/vbnet/threads/426588/how-to-move-arrays-1-place-down- But now i need help saving the arrays, i can save all the arrays to ini file like this: Ini module: Option Strict On Module INIAccess #Region "API Calls" ' standard API …

Member Avatar for DreamForLives
0
458
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
2K
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
806
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
405
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
373
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
368
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
309
Member Avatar for chrisschristou

Hello daniweb friend i work up to 6 moths to build my own e-commerce website finaly it is ready but i don't know what paymentgateway i can use i find a payment gateway who have esay api to use and who will not redirect customers for payment "not paypal" i …

Member Avatar for Frank15
0
205
Member Avatar for Learner010

i'm using VS 2008 for window application and made an http web request and it returns result in json([click here for json result](http://www.daniweb.com/api/articles/448095)). I am not much familiar with JSON and also newbie in vb.net . So , i don't have any idea to deserialize the JSON result. would you …

Member Avatar for Learner010
0
397
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
311
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
640
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
317
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
570
Member Avatar for chrisschristou

hello brothers sisters and friend on daniweb, my question look stupid but i want learn :D waht is API HOW TO USE basicaly in payment gateway and i would like to ask waht is the best api alternative to paypal easy to use and economic

Member Avatar for chrisschristou
0
72
Member Avatar for somjit{}

[Version 1](http://www.daniweb.com/software-development/java/threads/462737/generic-resizing-circular-array-.-do-i-need-to-implement-iterable-) had quite a few problems that i didnt think about. A lot of them were pointed out in the replies. I tried to correct them as best as i could to make this code. However , I'm having some doubts regarding what to do while implementing the Collection …

Member Avatar for somjit{}
0
297
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
298
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 Suzie999

A short while ago I was intrigued by a reply made by nullptr in [this thread](http://www.daniweb.com/software-development/cpp/threads/458583/shellexecuteex-api). So I began to look for ways to access the rest of IE (IWebBrowser2) interface, and met limited and varied success. Accessing for instance a <div></div> element in a wep page html document was …

Member Avatar for Suzie999
0
270
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
685
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
467
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
309
Member Avatar for happygeek

DaniWeb, the 10 year old IT discussion community with more than a million members, is always looking forward and never stops introducing new features and functions for users. When spammers managed to get the better of the (highly customised) vBulletin forum platform which had been driving DaniWeb since the get …

2
258
Member Avatar for HansK

I am trying to parse the XML for Vimeo clips, so that I can populate the thumbnail, Title and description on an ASP page. I can set the tartget to the Vimeo XML file, but cannot for the life of me get the actual content, let alsone isolate and use …

Member Avatar for HansK
0
408
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
548
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
878
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
208
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
435
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
563
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
568
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
552
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
148
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
174
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 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
276

The End.