Giter VIP home page Giter VIP logo

Comments (14)

peoplemerge avatar peoplemerge commented on June 2, 2024

Can you provide an example call you're making to the api with curl?

from delicious-api.

paoloramos avatar paoloramos commented on June 2, 2024

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.

paoloramos avatar paoloramos commented on June 2, 2024

And here's a twist: I get that error and sometimes my bookmark gets added into my account!!!

from delicious-api.

paoloramos avatar paoloramos commented on June 2, 2024

@peoplemerge: Hi, any updates? :)

from delicious-api.

azimut avatar azimut commented on June 2, 2024

Same here. I am using a slightly less sophisticated wget, although I set the UA, and I get the same behaviour.

from delicious-api.

 avatar commented on June 2, 2024

After 1 month this error still exist. Any news from Delicious team?

from delicious-api.

peoplemerge avatar peoplemerge commented on June 2, 2024

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.

azimut avatar azimut commented on June 2, 2024

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.

peoplemerge avatar peoplemerge commented on June 2, 2024

Thanks. I'll check it out now.

from delicious-api.

peoplemerge avatar peoplemerge commented on June 2, 2024

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.

peoplemerge avatar peoplemerge commented on June 2, 2024

OK turning it back off. 30-60s links save times would be a dealbreaker. Will check again next week

from delicious-api.

lukasztaras avatar lukasztaras commented on June 2, 2024

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.

 avatar commented on June 2, 2024

Any news?

from delicious-api.

sumkincpp avatar sumkincpp commented on June 2, 2024

Any updates on this? Looks very horrible.

from delicious-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.