README.md in skype-0.0.3 vs README.md in skype-0.1.0

- old
+ new

@@ -21,10 +21,17 @@ for Linux % gem install skype ruby-dbus +Gemfile +```ruby +gem "skype" +gem "rb-appscript" if RUBY_PLATFORM =~ /darwin/i +gem "ruby-dbus" if RUBY_PLATFORM =~ /linux/i +``` + Usage ----- please read [API Reference](http://dev.skype.com/desktop-api-reference) before use. ### load @@ -33,27 +40,40 @@ require 'skype' Skype.config :app_name => "my_skype_app" ``` -### send message +### Skype API + +send message ```ruby Skype.message "USER_NAME", "hello!!" +Skype.exec "MESSAGE USER_NAME hello!!" ``` -### call +call ```ruby Skype.call "USER_NAME" +Skype.exec "CALL USER_NAME" ``` -### get recent chat list +### Chat API + +find a chat ```ruby -puts Skype.search("recentchats") +chat = Skype.chats.find{|c| c.members.include? "shokaishokai" and c.topic =~ /testchat/ } ``` -### send message to group chat +post message to the chat ```ruby -Skype.chatmessage "#name1/name2;$a1b2cdef3456", "hello chat!!" +chat.post "hello chat!!" +``` + +show chat messages +```ruby +chat.messages.each do |m| + puts m +end ``` Samples ------- https://github.com/shokai/skype-ruby/tree/master/samples