Sha256: 014daba398b4bb82dcfead2363bbba8f6e23921f09e78b5878073f43ba86fa5c
Contents?: true
Size: 1.57 KB
Versions: 1
Compression:
Stored size: 1.57 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>update_item (Todoist)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre><span class="ruby-comment cmt"># File rtodoist.rb, line 90</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_item</span>(<span class="ruby-identifier">item_id</span>, <span class="ruby-identifier">content</span>, <span class="ruby-identifier">due_date</span>, <span class="ruby-identifier">priority</span>) <span class="ruby-identifier">base_url</span> = <span class="ruby-value str">"http://todoist.com/API/updateItem"</span> <span class="ruby-comment cmt"># URL encode the content to deal with spaces and special characters</span> <span class="ruby-identifier">content</span> = <span class="ruby-constant">CGI</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-identifier">content</span>) <span class="ruby-identifier">url</span> = <span class="ruby-node">%<#{base_url}?content=#{content}&id=#{id}&priority=#{priority}token=#{@token}></span> <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">get_json_data</span>(<span class="ruby-identifier">url</span>) <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rtodoist-0.0.2 | doc/classes/Todoist.src/M000010.html |