Git Product home page Git Product logo

smile's Introduction

smile

Smile is a simple gem to talk to SmugMug.com. This gem wraps the 1.2.0 interface.

Features

Configure

Smile::Base.configure do |config|
  config.log = Log.new( STDOUT )
  config.logger_on = true
  config.api_key = 'your key from smugmug'
end

new methods

album.reload!
photo.reload!

Exceptions!!!!
Hey it shows you better exceptions now when something goes wrong from the site or lib

Upload Images/Vids

smug = Smile.auth( '[email protected]', 'pass' )
album = smug.albums.first

album.add( '/path/to/image.ext' ) # => Smile::Photo (:

Search feeds

Smile.search( 'blueberries' ) => [Smile::Photo] 
Smile.search_rss( 'bison' ) => RSS::Parser Feed
Smile.search_raw( 'grand' ) => Raw response from the feed

auth accessors

smug = Smile.auth_anonymously
smug = Smile.auth( 'nick', 'pass' )

smug = Smile::Smug.new
smug.auth_anonymously
albums = smug.albums( :nick_name => 'kleinpeter' )

album = albums.first # just test the first one

album.photos # and see the pretty pics

Old auth accessors ( NOTE: These are still supported )

smug = Smile::Smug.new
smug.auth( 'my_nick', 'my_pass' )
albums = smug.albums # theses are mine

album = albums.first # just test the first one

album.photos # and see the pretty pics

TODO

  • Clean up params so they are not case sensitive ( Lots of cases have been handled)

  • Create better exception handlers

  • Update Documentation ( getting there. it’s being published on rdoc.info now rdoc.info/projects/cajun/smile )

  • Plugin in Cucumber

smile's People

Contributors

cajun avatar devkmsg avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.