Skip to content

Instantly share code, notes, and snippets.

View nezed's full-sized avatar
🇺🇦

D. Naumov nezed

🇺🇦
  • 00:23 (UTC +02:00)
View GitHub Profile
@nezed
nezed / gist:6086fd74db2b5b9d1a2d
Created January 19, 2016 08:02 — forked from afilhodaniel/gist:09a1df8eafeabe1584c6
Upload photos to Instagram via private API with Ruby
class InstagramPrivateController < ApplicationController
def initialize(username, password, photo, caption)
@username = username
@password = password
@photo = photo
@caption = caption
@cookiepath = Tempfile.new('cookies').path
@user_agent = generate_user_agent()