You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hayesdavis edited this page Sep 13, 2010
·
2 revisions
It’s often a good idea to set a custom User-Agent header when communicating with the Twitter API, especially when using the Search API. By default, Grackle sends the following User-Agent header:
Grackle/VERSION
(Where VERSION is the version of the Grackle gem you have installed. e.g. 0.1.6. This comes from Grackle::VERSION.)
Changing the User-Agent string helps uniquely identify your application to Twitter, which helps with support requests. You can change your User-Agent string in two ways:
When you instantiate a new client: client = Grackle::Client.new(:headers => {'User-Agent' => "MyApp/#{VERSION} Grackle/#{Grackle::VERSION}"})