Created
January 11, 2019 19:50
-
-
Save jngnyc/18c565bdd189882200b49b399bb39ce3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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