Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jngnyc
Created January 11, 2019 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jngnyc/18c565bdd189882200b49b399bb39ce3 to your computer and use it in GitHub Desktop.
Save jngnyc/18c565bdd189882200b49b399bb39ce3 to your computer and use it in GitHub Desktop.
data = {
:"email" => self.email,
:"userName" => self.email,
:"userPassword" => "password",
:"FirstName" => self.name,
}
begin
http = Curl.post("https://api.instabot.io/v1/users", data.to_json) do |http|
http.headers["X-Instabot-Api-Key"] = "#{api_key}"
http.headers["Authorization"] = "X-Instabot-Master-Api-Key #{api_master_key}"
http.headers["Content-Type"] = "application/json"
end
rescue Exception => e
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment