hyves_oauth 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +37 -0
- data/lib/hyves_oauth/client.rb +3 -3
- data/lib/hyves_oauth/version.rb +1 -1
- metadata +5 -22
data/README
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
hyves_oauth may be used to connect Ruby to the Dutch social networking
|
2
|
+
website Hyves using the OAuth authentication protocol.
|
3
|
+
|
4
|
+
Sample usage:
|
5
|
+
|
6
|
+
#####
|
7
|
+
|
8
|
+
client = HyvesOAuth::Client.new({
|
9
|
+
:consumer_key => 'MY_CONSUMER_KEY',
|
10
|
+
:consumer_secret => 'MY_CONSUMER_SECRET',
|
11
|
+
:token => 'ACCESS_TOKEN',
|
12
|
+
:secret => 'ACCESS_TOKEN_SECRET'
|
13
|
+
})
|
14
|
+
response = client.update('Developing hyves_oauth gem', {'where' => 'Home', 'visibility' => 'public'})
|
15
|
+
|
16
|
+
#####
|
17
|
+
|
18
|
+
For more hyves_oauth documentation, check
|
19
|
+
http://rubydoc.info/gems/hyves_oauth/frames
|
20
|
+
|
21
|
+
The documentation for the Hyves Data-API may be found at
|
22
|
+
http://www.hyves-developers.nl/documentation/data-api/home
|
23
|
+
|
24
|
+
hyves_oauth currently supports 2 of those API calls:
|
25
|
+
- users.getLoggedin
|
26
|
+
- wwws.create
|
27
|
+
|
28
|
+
To register an application and apply for Hyves consumer keys, go to
|
29
|
+
http://www.hyves.nl/developer/
|
30
|
+
|
31
|
+
To experiment with the API, and fetch your own access token, hit the
|
32
|
+
'Console' link after you've registered your application.
|
33
|
+
|
34
|
+
To add functionality to hyves_oauth, fork this project at
|
35
|
+
https://github.com/kevinvandijk/hyves_oauth or
|
36
|
+
https://github.com/ohreally/hyves_oauth, make your changes, and send
|
37
|
+
a pull request.
|
data/lib/hyves_oauth/client.rb
CHANGED
@@ -24,8 +24,8 @@ module HyvesOAuth
|
|
24
24
|
@access_token
|
25
25
|
end
|
26
26
|
|
27
|
-
def update(message)
|
28
|
-
post("/", {"ha_method" => "wwws.create", "emotion" => message, "visibility" => "default"})
|
27
|
+
def update(message, options = {})
|
28
|
+
post("/", {"ha_method" => "wwws.create", "emotion" => message, "visibility" => "default"}.merge(options))
|
29
29
|
end
|
30
30
|
|
31
31
|
def get_logged_in
|
@@ -52,4 +52,4 @@ module HyvesOAuth
|
|
52
52
|
JSON.parse(oauth_response.body)
|
53
53
|
end
|
54
54
|
end
|
55
|
-
end
|
55
|
+
end
|
data/lib/hyves_oauth/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hyves_oauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
version: 0.0.1
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.2
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Kevin van Dijk
|
@@ -15,8 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date:
|
19
|
-
default_executable:
|
13
|
+
date: 2011-06-16 00:00:00 Z
|
20
14
|
dependencies:
|
21
15
|
- !ruby/object:Gem::Dependency
|
22
16
|
name: oauth
|
@@ -26,11 +20,6 @@ dependencies:
|
|
26
20
|
requirements:
|
27
21
|
- - ">="
|
28
22
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 7
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
- 4
|
33
|
-
- 4
|
34
23
|
version: 0.4.4
|
35
24
|
type: :runtime
|
36
25
|
version_requirements: *id001
|
@@ -46,12 +35,12 @@ extra_rdoc_files: []
|
|
46
35
|
files:
|
47
36
|
- .gitignore
|
48
37
|
- Gemfile
|
38
|
+
- README
|
49
39
|
- Rakefile
|
50
40
|
- hyves_oauth.gemspec
|
51
41
|
- lib/hyves_oauth.rb
|
52
42
|
- lib/hyves_oauth/client.rb
|
53
43
|
- lib/hyves_oauth/version.rb
|
54
|
-
has_rdoc: true
|
55
44
|
homepage: ""
|
56
45
|
licenses: []
|
57
46
|
|
@@ -65,23 +54,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
65
54
|
requirements:
|
66
55
|
- - ">="
|
67
56
|
- !ruby/object:Gem::Version
|
68
|
-
hash: 3
|
69
|
-
segments:
|
70
|
-
- 0
|
71
57
|
version: "0"
|
72
58
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
59
|
none: false
|
74
60
|
requirements:
|
75
61
|
- - ">="
|
76
62
|
- !ruby/object:Gem::Version
|
77
|
-
hash: 3
|
78
|
-
segments:
|
79
|
-
- 0
|
80
63
|
version: "0"
|
81
64
|
requirements: []
|
82
65
|
|
83
66
|
rubyforge_project: hyves_oauth
|
84
|
-
rubygems_version: 1.
|
67
|
+
rubygems_version: 1.8.1
|
85
68
|
signing_key:
|
86
69
|
specification_version: 3
|
87
70
|
summary: A Ruby client for the Hyves API using OAuth
|