_scripts/transfer_urls.rb
# Set the URL of the Disqus thread to the given value
Set the URL of the Disqus thread to the given value
Set the URL of the Disqus thread to the given value
def update(thread_id, url)
  data = {
    :forum_api_key => FORUM_KEY,
    :thread_id => thread_id,
    :url => url
  }
  puts "Updating thread #{thread_id} with URL = #{url}"
  response = JSON.parse( DISQUS['update_thread'].post(data) )
end
def update ( thread_id , url ) data = { :forum_api_key => FORUM_KEY , :thread_id => thread_id , :url => url } puts "Updating thread #{thread_id} with URL = #{url}" response = JSON . parse ( DISQUS [ 'update_thread' ] . post ( data ) ) end
Set the URL of the Disqus thread to the given value
Set the URL of the Disqus thread to the given value
thread_id
url