def thread_by_identifier(identifier, title)
      # TODO - should we separate thread retrieval from thread creation? The API to me seems confusing here.
      response = Disqus::Api::thread_by_identifier(:identifier => identifier, :title => title, :forum_api_key => key)
      if response["succeeded"]
        t = response["message"]["thread"]
        Thread.new(t["id"], self, t["slug"], t["title"], t["created_at"], t["allow_comments"], t["url"], t["identifier"])
      else
        raise_api_error(response)
      end
    end
def thread_by_identifier(identifier, title)
      # TODO - should we separate thread retrieval from thread creation? The API to me seems confusing here.
      response = Disqus::Api::thread_by_identifier(:identifier => identifier, :title => title, :forum_api_key => key)
      if response["succeeded"]
        t = response["message"]["thread"]
        Thread.new(t["id"], self, t["slug"], t["title"], t["created_at"], t["allow_comments"], t["url"], t["identifier"])
      else
        raise_api_error(response)
      end
    end
Create or retrieve a thread by an arbitrary identifying string of your
 choice. For example, you could use your local database's ID for the
 thread. This method allows you to decouple thread identifiers from the
 URL's on which they might be appear. (Disqus would normally use a
 thread's URL to identify it, which is problematic when URL's do not
 uniquely identify a resource.) If no thread exists for the given
 identifier (paired with the forum) yet, one will be created.

 Returns a Thread object representing the thread that was created or
 retrieved.