My favorites | Sign in
Project Logo
             
Search
for
Updated Apr 14, 2008 by christopher.ledet
Labels: Featured, Phase-Implementation, Phase-Deploy
GettingStartedWithPowncy  
I plan on writing some more documentation on my Ruby source files for Powncy in future releases.

Requirements

Please 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. ;)

Details

Here'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! :)


Sign in to add a comment
Hosted by Google Code