RequirementsPlease download the 'json' gem in order to use Powncy. You can do this by typing in the command: install gem json There is a config.yaml file, you must put your username, password, and application key in there in order to use this. ;) DetailsHere's an example on how to use Powncy. require 'Powncy.rb'
user = Powncy::AuthenicatedUser.new # you logged in
puts user.username # prints your username
puts user.first_name # prints your first name
new_note = Powncy::Note.new
new_note.message = "Insert your message here!!!" # place your msg here
new_note.to = "public" # or "all" || your friends_x, or set_x
user.send_note(new_note) # sends the note and then returns the note's id
Questions, Comments, Help? contact me! :)
|