domainersuitedev / delicious-api Goto Github PK
View Code? Open in Web Editor NEWDelicious API Documentation
Delicious API Documentation
I'm the author of node.js Delicious API client https://github.com/cliffano/eggtart , which uses api.delicious.com as the API host.
This used to work untill lately all requests to api.delicious.com are getting timeouts.
Has the API service been moved somewhere else?
Does redirect_uri parameter support custom url protocols? Say something like myapp://?
In the authorization process when the API request access to the data, the Refuse option does nothing. A response should be trigger in order to properly implement the rejection in a third party application. Right now any callback logic never will know if the authorization was rejected.
I'm looking through your "new" oauth implementation and did some sample code. As in my current application (I started at a time where this github page did not exist). During my sample code i had to jump between several URLs and I'm not sure if I use the right one. Here are my findings:
What is the MD5 implementation you're using to hash the href field from a post?
I cannot understand why my hashes are not matching your data.
Mine Yours 766efaf951a21e30f5a6128256441879 == 766efaf951a21e30f5a6128256441879 http://stackoverflow.com/questions/202013/clickonce-and-isolatedstorage b06c50f709e6003e2480799ba714917b != ed677fde4b8d36f7debfca524164211a http://www.codemag.com/article/0611041 47b87d2e715ac0fcef2702dbe6bfd331 != 7aab575f1b8d39be0d7de56175538cfc https://msdn.microsoft.com/en-us/library/bb397895.aspx 61dd26c913a23edf5850806db6597728 == 61dd26c913a23edf5850806db6597728 http://stackoverflow.com/questions/16864617/updating-the-build-definition-for-many-tfs-projects 9e29a21e93a62e4d03a58e52735d3dcd != f46fb6e130ee6bfa1d1f1a7e274879c4 http://www.codeproject.com/Articles/5724/Understanding-NET-Code-Access-Security#Tools
I have cross-checked my computed value with a 3rd party which matches my computed hash. http://www.miraclesalad.com/webtools/md5.php
I tried using /v1/posts/add? with replace=yes and got "done" as respones. however, nothing was changed
Is there a way to get JSON repsonses instead of XML? Any planes to support this on the here documentet set of API? There is already JSON if we access the oAuth stuff, but all the traditional API is only returning XML.
Thank you.
In the past couple of days, api.del.icio.us has been returning a 503 error:
Failed to load resource: the server responded with a status of 503 (Service Unavailable: Back-end server is at capacity)
is it possible to get the real name for a user?
i would use it for two pursoses: display the name so the user knows he/she is logged in. and verify the user credentials. right now i have to get all the tags/posts to check if username and password are correct. or is there a way to achieve this that i missed?
I'm following the instructions in oauth.md to obtain an access_token for my application.
After obtaining the request_token, I'm trying to get the access_token using the URL provided in the example (i.e. https://avosapi.delicious.com/api/v1/oauth/token?) with the required parameters but I keep receiving the following error:
HTTP ERROR 405
Problem accessing /api/v1/oauth/token. Reason:
Request method 'GET' not supported
Have I missed some detail? Is this the right URL to ask for the access_token?
full samples using c# ?
https://github.com/domainersuitedev/delicious-api/blob/master/api/posts.md
how get curl tool ?
I try to execute the following API to add bookmark with Chinese characters (wih url encoded):
https://api.delicious.com/v1/posts/add?url=http://blog.csdn.net/liuhe688/article/details/6532519&description=%e8%af%a6%e8%a7%a3Android%e4%b8%adAsyncTask%e7%9a%84%e4%bd%bf%e7%94%a8+-+scott%27s
+blog+-+%e5%8d%9a%e5%ae%a2%e9%a2%91%e9%81%93+-+CSDN.NET&shared=no&tags=AsyncTask%2cAndroid%2c%e5%ad%a6%e4%b9%a0&replace=no&dt=2013-10-26T00:00:00Z
But the server returned "500", and the bookmark didn't instered.
Hi,
When calling the /v1/posts/all API, all the tags relating to that post appear to be concatenated into a single string (seperated by spaces) and set as the value of the tag
attribute.
For example if we tagged a post with foo bar
and baz
the API would return tag="foo bar baz"
This makes it difficult to correctly parse the tags correctly if there are multiple tags which contain spaces.
Would it be possible for the API to return a tags child element, which contains the tags as seperate elements, within the post element?
For example:
<post ... >
<tags>
<tag>foo bar</tag>
<tag>baz</tag>
</tags>
</post>
Thanks!
Hitting /api/v1/oauth/auth returns an error
"READONLY You can't write against a read only slave.; nested exception is redis.clients.jedis.exceptions.JedisDataException: READONLY You can't write against a read only slave."
With the recent changes at delicious, and seeing the number of issues around here, will this api still be supported?
If the redirect already has a query string, e.g. https://example.com/?someparam=somevalue
and I construct the authorize URL as https://delicious.com/auth/authorize?client_id=a_client_id&redirect=https%3A%2F%2Fexample.com%2F%3Fsomeparam%3Dsomevalue
, I'm redirected to https://example.com/?someparam=somevalue?code=a_code rather than the correct value of https://example.com/?someparam=somevalue&code=a_code
Bonus bug: redirect is a required parameter in the documentation, but the authorize page still loads without it.
I have some issues renaming and during the investigation i tried to analyse and found out that the data of the diffrent api calls don't match. At the moment i'm sure it is not a "caching" issue. If tested running a powershell against the api se at the end of this text. My test was:
Why are the numbers so different? I have about 10 or 15 tags showing this behaviour?
PowerShell 4.0 (Win 8)
$cred = Get-Credential
$req = Invoke-WebRequest -Uri "https://api.del.icio.us/v1/posts/all?tag=sharepoint&tag_separator=comma" -Credential $cred
$xml = [xml]$req.Content
$xml.posts.post.Count
#Result: 266
$reqTag = Invoke-WebRequest -Uri "https://api.del.icio.us/v1/tags/get" -Credential $cred
$xmlTag = [xml]$reqTag.Content
$xmlTag.tags.tag | ? { $_.tag -eq "sharepoint" }
#count tag
#----- ---
#268 sharepoint
$req = Invoke-WebRequest -Uri "https://api.del.icio.us/v1/posts/all?tag=development&tag_separator=comma" -Credential $cred
$xml = [xml]$req.Content
$xml.posts.post.Count
#Result: 100
$reqTag = Invoke-WebRequest -Uri "https://api.del.icio.us/v1/tags/get" -Credential $cred
$xmlTag = [xml]$reqTag.Content
$xmlTag.tags.tag | ? { $_.tag -eq "development" }
#count tag
#----- ---
#118 development
There is text under the image for changing the avatar. It currently reads "Avatar (Maxium File Size: 2 MB)"
'Maxium' should be 'Maximum'.
I followed the instructions, and got things working until calling /oauth/token, when I received this error:
HTTP ERROR 405
Problem accessing /api/v1/oauth/token. Reason:
Request method 'GET' not supported
Is it because I am calling from the browser?
Would appreciate any help. Thanks.
I know the site has changed it's URL recently and is now active as https://del.icio.us but is there any update on the original REST API endpoints and if they are still active?
If I set replace=yes for posts/add, Delicious is sometimes adding a new bookmark even if an existing bookmark with the specified URL already exists in my collection, and sometimes throws a 500 with no error message.
URL that adds a new bookmark: http://www.edudemic.com/6-ways-students-can-collaborate-with-ipads/
URL that throws a 500: http://www.zeldman.com/2014/03/09/evolving-responsive-web-design/?utm_content=bufferfdcaa&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer
Hi,
The v1/posts/update
function is supposed to be used before re-fetching all the links with v1/posts/all
or /v1/posts/all?hashes
.
I've tested v1/posts/update
and found, that the response will not change after having edited or deleted an existing link (unless editing or deleting the most recently added link).
This will lead to inconsistency (when trusting the update function) until the user adds a new link.
My suggestion would be to let v1/posts/update
always return the newest modification timestamp or the timestamp of the last deletion (which could be a single field updated on every deletion).
Or maybe I just missed something important. Let me know.
Thanks.
I have a test user with a password that looks something like this:
^FwF*5J1)V5j1+8/D3x:4,2=
I am able to log in via the web, but not via API. Here are some things I've tried...
curl -u 'mytestusername:^FwF*5J1)V5j1+8/D3x:4,2=' https://api.del.icio.us/v1/posts/get
curl https://mytestusername:^FwF*5J1)V5j1+8/D3x:4,[email protected]/v1/posts/get
curl https://mytestusername:%5EFwF%2A5J1%29V5j1%2B8%2FD3x%3A4%2C2%[email protected]/v1/posts/get
curl -u 'mytestusername:%5EFwF%2A5J1%29V5j1%2B8%2FD3x%3A4%2C2%3D' https://api.del.icio.us/v1/posts/get
In Chrome, open https://api.del.iciou.us/v1/posts/get, and paste in the u/p
I get result code="access denied" with all of these.
If I change my password to something like 'delicious123', everything works fine.
Am I doing something wrong? Or is there a bug in the API?
What does this mean?
Please watch for 500 or 999 errors and back-off appropriately. It means that you have been throttled.
It refers to a respnse XML with <result code="500" />
or <result code="999" />
? or an HTTP response code?
@sunng87 could you help me? Thanks.
I'm using /v1/posts/all?
to get all bookmarks. But it returns only the first 1000 bookmarks.
How to retrieve 1001+ bookmarks?
There was a StackOverflow question back in June 2012 that mentioned support was coming for oAuth 2.0 in a few months. Are there any plans to move beyond basic authentication? I'd rather not ask my users for their credentials, and have to store them.
Hi,
I used the following command to add a URL to my account:
curl https://user:[email protected]/v1/posts/add?url=http://timesofindia.indiatimes.com/city/goa/Excise-deparments-online-efforts-reduce-pendency/articleshow/46817719.cms
After about 2 mins, the link appeared on my Del.icio.us account. However, the Title of the web page appears as timesofindia.indiatimes.com. I was expecting the Title to be :
"Excise deparment’s online efforts reduce pendency"
What am I missing?
Thanks
Hello, I'm trying to use the API and since January 8, 2015 I'm unable to authenticate through the API. Does the API is down?
I tried retrieving suggestions and parsing failed. while debugging i noticed, that the data format is different from what is listet here. it's not < popular >tagname< /popular > but < popular tag="tagname" / >
Hi,
Does the current API support Basic Authentication using AJAX and XMLHttpRequest() calls ?
I am attempting this with javascript inside the Firefox browser:
function SendAPI(username,passwd,api) {
var req=new XMLHttpRequest();
req.onreadystatechange=onReadyStateChangeHandler();
console.log("SendAPI: GET:"+api);
req.open("GET", api, true, username, passwd);
req.send(null);
return(req.responseText);
}
What I see on Firefox's javascript console is this:
SendAPI: GET:https://api.del.icio.us/v1/posts/recent
NS_ERROR_DOM_BAD_URI: Access to restricted URI denied
Why is the API call denied ? Is it the way I am calling the API with XHR ?
I have successfully made API calls with Basic Auth using curl from bash. So I know Basic Auth is supported. By why the rejection with XHR ?
All 3rd party apps seem unable to get any posts right now. The response I'm getting back is consistently the same, <result code=\"no bookmarks\"/>
. Is this possibly related to the March 9 changes?
I was looking for a call to get all untagged items (i.e. all items that don't have any tag applied to) but i can't find it. It would be very useful to me since i deleted a whole old set of tags and now i'd like to reclassify only the untagged links without passing through all of them.
There's an API to add and delete posts, but nothing to modify existing posts. Please add.
In this link:https://tools.ietf.org/html/rfc6749#section-4.1.3
grand_type should equals authorization_code rather than code.
In this link: https://github.com/SciDevs/delicious-api/blob/master/api/oauth.md#parameters-1
It's wrong about "code={request_token} (optional) — required when grant_type=code"
I use standard oauth2.0 client can't get access token, unless i change grant_type=code.
After a couple of day. I found this link: https://developers.google.com/identity/protocols/OAuth2WebServer
Seems like I'm always getting an error adding a link with a extended characters in the description or url parameters. For example:
Puzzling.
Hi,
I'm getting the "error adding link" error when I use the API to add a new bookmark. However, I do not get an explanation on what the actual error is.
Help!
Thanks.
Unless I'm missing something :)
If a user is signed in via OAuth (for example) and has some posts, the return result includes the signed in user name. However, if the user has zero posts, then the API returns:
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<result code=\"no bookmarks\"/>
...if a client is using OAuth, the user name is never known for display. I guess that's OK but... you know, sometimes it is there, sometime it ain't ;)
If the user rejects access to my application, it will be possible to redirect to the callback URL with some parameters summarizing the error:
http://your-application.com/callback?error=access_denied
&error_description=The+user+has+denied+your+application+access.
&error_uri=https://delicious.com/auth/authorize/%23access-denied
&state=xyz
Hi
I recently found, that some API functions behave differently than documented. Some of the inconsistencies may be minor, but I listed them anyway for completeness. The (imo) more important problems have a bold font in the description.
These are the inconsistencies that I've found:
Description | API docs | real |
---|---|---|
delete by md5 hash | not documented | ?md5=... |
Description | API docs | real |
---|---|---|
privacy status | not documented | redundant: private="no" shared="yes" |
empty attributes | are ommited in example | extended="" |
Description | API docs | real |
---|---|---|
Description argument | required | optional |
Description | API docs | real |
---|---|---|
others attribute in response |
yes in example | no |
undocumented keys in attributes of <posts> |
none | bookmark_key="some_hash" inbox_key="some_other_hash" network_key="more_hash" |
privacy status | not documented | redundant: private="no" shared="yes" |
Description | API docs | real |
---|---|---|
privacy status | not documented | redundant: private="no" shared="yes" |
Description | API docs | real |
---|---|---|
Response for empty inbox | inboxnew="0" |
inboxnew="" |
Undocumented attributes in response | - | code="200" message="success" |
Description | API docs | real |
---|---|---|
tag(s) attr. in <dates> |
tag= |
tags= |
This page mentions that we should be able to get information about a URL: https://delicious.com/rss
But unfortunately, the feed isn't working. And this API doesn't support this feature yet.
How should we proceed to get these datas?
Thanks in advance
Brice
Hello
Deleting and renaming tags as documented here does not seem to work.
After adding the tag test
to some links, I tried the following:
https://api.del.icio.us/v1/tags/delete?tag=test
https://api.del.icio.us/v1/tags/rename?old=test&new=newtest
Both returned <result code="done"/>
(which is not according to the docs) and did neither rename nor delete the tag.
I also noticed, that no error was returned, when I ommited the parameters, i.e.:
https://api.del.icio.us/v1/tags/delete
https://api.del.icio.us/v1/tags/rename
Also returns <result code="done"/>
Hi there,
Any documentation on using the Twitter (or Facebook, Google+) authentication results? Delicious presents the user with a sign in page, that's cool, although they have the option of using Twitter (for example) to sign in rather than the user name and password credentials. This differs from the OAuth process documented, like, Delicious is then authenticated so how does a Delicious client then get/use the API with Twitter tokens?
Many thanks!
spaceyjase
Hi,
If using the API with api.delicious.com, I am getting redirected to api.del.icio.us for actual handling of the calls. This works fine most of the time, however, if there are arguments with spaces in them (such as a tag name) it will get changed in a way that will generate an error.
For example
https://api.delicious.com/v1/posts/all?tag=mortage%20house&tag_separator=comma
redirects to
https://api.del.icio.us/v1/posts/all?red=api&tag=mortage+house&tag_separator=comma
and the former url doesn't work.
As a workaround I switched to using api.del.icio.us directly. If possible, please reconfigure redirect in a different way.
Thanks.
From a hash and/or url ? is it possible to get a link to the HTML page of my link on delicious.com to edit my bookmark ?
something like :
http://delicous.com/:user/:bookmark/:hash
?
I'm developing a win 8 delicious app and i noticed that using spaces in tag names is causing problems. I'm calling the rename uri like this:
https://api.del.icio.us/v1/tags/rename?old=ms+sharepoint&new=ms-sharepoint
This should rename "ms sharepoint" to "ms-sharepoint". In some cases it seems to work but for this specific task. Same is if i try to rename "ms sql". The return of the url is:
Any idea what to do?
The api is returning through the tags url all tags (also those with spaces). I try to find these tags in the posts im screwed because tags are delivered seperated by space. So for my example i'm getting back:
ms sql ms sharepoint
Thats really bad. The "posts/get" api call can use comma as a seperater but this doesn't help because there is no way to get all date.
Can you please help? At the moment i'm trying to recommend my users to not use spaces. At the moment i try to detect the "bad tags" and rename them, but at the moment without much luck.
Ciao Marco
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.