DISQUS

evansims.com: Web APIs by Example, Part II: del.icio.us • Evan Sims

  • Ruben · 11 months ago
    Hi there,
    nice piece of code. it works.

    i altered this code by adding :

    if(isset($_POST['url']) && isset($_POST['description']) && isset($_POST['tags']) && isset($_POST['extended'])) {

    // Bookmark a URL

    $url = urlencode(trim($_POST['url']));
    $description = urlencode(trim($_POST['description']));
    $extended = urlencode(trim($_POST['extented']));
    $tags = urlencode(trim($_POST['tags']));
    httpRequest('ssl://api.del.icio.us', '/v1/posts/add?url=' . $url . '&description=' . $description . '&tags=' . $tags. '&extended=' . $extended);

    now the form also adds 'tags' to your account,

    BUT : the field "extended" still remains empty.
    any suggestions on how to fix this?