# documentation: http://delicious.com/help/api package require rest set delicious(updated) { url https://api.del.icio.us/v1/posts/update auth basic result raw post_transform { regexp { update return [clock scan [string map {T " " Z " UTC"} $update]] } } set delicious(add_post) { url https://api.del.icio.us/v1/posts/add auth basic req_args { url: description: } opt_args { extended: tags: dt: replace: shared: } check_result { {[regexp {done} $result]} {} } } set delicious(rename_tag) { url https://api.del.icio.us/v1/tags/rename auth basic req_args { old: new: } check_result { {[regexp {done} $result]} {} } } set delicious(get_bundles) { url https://api.del.icio.us/v1/bundles/all auth basic opt_args { bundle: } } set delicious(set_bundle) { url https://api.del.icio.us/v1/bundles/set auth basic req_args { bundle: tags: } check_result { {[regexp {ok} $result]} {} } } set delicious(delete_bundle) { url https://api.del.icio.us/v1/bundles/delete auth basic req_args { bundle: } check_result { {[regexp {done} $result]} {} } } set delicious(public_posts) { url http://feeds.delicious.com/v2/json/%user%/%tags:% opt_args { count: } } set delicious(modify_post) { url https://api.del.icio.us/v1/posts/add auth basic req_args { post: } opt_args { description: extended: tags: dt: shared: } check_result { {[regexp {