Comments (14)
Can you provide an example call you're making to the api with curl?
from delicious-api.
Here's a sample:
$params = array(
'url' => 'http://google.com',
'description' => 'Desc',
'tags' => 'tag1,tag2',
'extended' => 'Extended Content',
'shared' => "yes",
);
$params_encoded = http_build_query($params);
$access_token = 'someaccesstoken';
$header[] = "Authorization: Bearer {$access_token}";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.del.icio.us/v1/posts/add?".$params_encoded);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0');
curl_setopt($ch, CURLOPT_REFERER, 'http://delicious.com');
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_exec($ch);
The response is always:
<?xml version="1.0" encoding="UTF-8"?><result code="error adding link"/>
from delicious-api.
And here's a twist: I get that error and sometimes my bookmark gets added into my account!!!
from delicious-api.
@peoplemerge: Hi, any updates? :)
from delicious-api.
Same here. I am using a slightly less sophisticated wget, although I set the UA, and I get the same behaviour.
from delicious-api.
After 1 month this error still exist. Any news from Delicious team?
from delicious-api.
Hey guys, sorry for the slow response.
@azimut can you post the wget? It's a lot easier for me to duplicate wget than php code.
from delicious-api.
Thanks for the reply @peoplemerge
Command:
wget --user-agent=****** --http-user=***** --http-passwd=**** -O result.html 'https://api.del.icio.us/v1/posts/add?url=http://imgur.com/gallery/*****&description=*****&extended=****'
result.html
<?xml version="1.0" encoding="UTF-8"?><result code="error adding link"/>
from delicious-api.
Thanks. I'll check it out now.
from delicious-api.
OK I was able to make limited progress. The problem is on our side (you knew that).
It's related to a component that's in the process of being revamped. When users save a link, we have a job that retrieves the full text of the link in order to suggest link title, key image, and some other key metainformation. I'm not sure, but Delicious probably does not recommend tags that way.
That job has been off for at least a few weeks as the component revamp has continued. After dissecting a lot of code, discovered this, and by flipping the switch on link retrieval, I was able to get the result to no longer say "error adding link".
Unfortunately, we had it off for a reason. Now link saving can take 60 sec.
Think you guys can give us a bit more time to complete the refactor? For the next few days, please report any changes to the behavior here.
from delicious-api.
OK turning it back off. 30-60s links save times would be a dealbreaker. Will check again next week
from delicious-api.
Problem still persists. We need to make 2 submissions. First one will say 'error adding link' - even though link/post was successfully published, second will say 'item already exists', and that's how we can retrieve status so far .....
from delicious-api.
Any news?
from delicious-api.
Any updates on this? Looks very horrible.
from delicious-api.
Related Issues (20)
- Summary information about a URL HOT 5
- Auth/authorize is no working since January 8, 2015. HOT 1
- Throttling doubts
- Problem with refuse in authorize dialog HOT 4
- md5 calculation does not match HOT 4
- Recommendation for a better Refuse behavior HOT 1
- JSON response instead of XML HOT 3
- api.del.icio.us returning 503 error HOT 9
- api.delicious.com to api.del.icio.us redirect breaks spaces in parameters HOT 1
- Failed on calling /oauth/token; Got Error 405. HOT 2
- Typo under Change Avatar HOT 3
- grant_type should use authorization_code rather than code HOT 2
- AJAX XHR support for Basic Auth
- URL title not appearing in Delicious
- OAuth authorization fails HOT 2
- Get posts always returns "no bookmarks" HOT 2
- samples api in c#?
- Is the 'https://api.del.icio.us/v1/*' API still active HOT 1
- https://api.del.icio.us/v1/ api is still active ????
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from delicious-api.