Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shokai/skype-ruby
Deprecated. MS removed API
https://github.com/shokai/skype-ruby
Last synced: 5 days ago
JSON representation
Deprecated. MS removed API
- Host: GitHub
- URL: https://github.com/shokai/skype-ruby
- Owner: shokai
- License: mit
- Created: 2013-06-19T19:15:41.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-04-23T08:51:13.000Z (over 8 years ago)
- Last Synced: 2024-04-14T03:04:20.380Z (7 months ago)
- Language: Ruby
- Homepage: http://rubygems.org/gems/skype
- Size: 516 KB
- Stars: 60
- Watchers: 5
- Forks: 10
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: History.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
Skype
=====
[Skype Desktop API](http://dev.skype.com/desktop-api-reference) Ruby wrapper for Mac/Linux.- https://github.com/shokai/skype-ruby
- http://rubygems.org/gems/skypePlatforms
---------
- AppleScript + Mac OSX
- DBus + Linux (testing on Ubuntu 12.04)Installation
------------for Mac
% gem install skype
% skype-chatfor Linux
% gem install skype ruby-dbus
% skype-chatGemfile
```ruby
gem "skype"
gem "ruby-dbus" if RUBY_PLATFORM =~ /linux/i
```Usage
-----
please read [API Reference](http://dev.skype.com/desktop-api-reference) before use.### load
```ruby
require 'rubygems'
require 'skype'Skype.config :app_name => "my_skype_app"
```### Skype API
send message
```ruby
Skype.message "USER_NAME", "hello!!"
Skype.exec "MESSAGE USER_NAME hello!!" # execute API directly
```call
```ruby
Skype.call "USER_NAME"
Skype.exec "CALL USER_NAME"
```video call
```ruby
Skype.exec "VIDEOCALL USER_NAME"
```### Chat API
find a chat
```ruby
chat = Skype.chats.find{|c| c.members.include? "shokaishokai" and c.topic =~ /testchat/ }
```post message to the chat
```ruby
chat.post "hello chat!!"
```show chat messages
```ruby
chat.messages.each do |m|
puts m
end
```### Call API
call
```ruby
call = Skype.call "shokaishokai"
```check status
```ruby
puts call.status # => :routing, :ringing, :inprogress, :finished, :missed, :cancelled
puts call.talking? # => true, false
```hangup
```ruby
call.hangup
```Samples
-------
- https://github.com/shokai/skype-ruby/tree/master/samples
- https://github.com/shokai/skype-ruby/tree/master/binTest
----
test requires 2 skype accounts.% gem install bundler
% bundle install
% export SKYPE_FROM=your_skype_name1
% export SKYPE_TO=your_skype_name2
% rake testContributing
------------
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request