Skip to content

yo-artyom/instagram_uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InstagramUploader

Installation

Add this line to your application's Gemfile:

gem 'instagram_uploader'

And then execute:

$ bundle

Or install it yourself as:

$ gem install instagram_uploader

Usage

Somewhere in your code:

require 'instagram_uploader'

Example

require 'instagram_uploader'

uploader = InstagramUploader::Uploader.new('login', 'password')
uploader.upload('./image.jpg', 'image_description')

You can't upload an image with description that will include control characters or symbol ' ( or many other things) before uploading i change my desc to

desc.gsub(/[\'\n]/, '  ').gsub(/[^[:print:]]/) {|x| x.ord}

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/q3pp/instagram_uploader.

License

The gem is available as open source under the terms of the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published