yam 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.yardopts +0 -1
- data/CHANGELOG.md +9 -0
- data/README.md +19 -2
- data/lib/yammer/api/open_graph_object.rb +1 -1
- data/lib/yammer/version.rb +1 -1
- data/spec/api/open_graph_object_spec.rb +2 -2
- data/yam.gemspec +2 -1
- metadata +17 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efe7da45d1384aa987bb650493e8a5e3b68871bc
|
4
|
+
data.tar.gz: af3421c4a699211c7ce4f0b017ada9b021197777
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe082f2ab7d0092f0c852c487fa1bb40596984796bb1f6a865bef31a7fb7fb87f06e3b66ae3c690127c40b7828abd50a27889d2008f3f313bbe59946268caccc
|
7
|
+
data.tar.gz: 8a23565f187e4104635e03ec2b9a65c958e37e2dbfa11d96a7eb098087cf5227826acaf1df72fa54c590e6427e5ed549316a4467757a512916bcbfd784900688
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.yardopts
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
|
2
|
+
2.0.1
|
3
|
+
====================================
|
4
|
+
- Fixed Typo in open graph object api call
|
5
|
+
|
6
|
+
2.0.0
|
7
|
+
====================================
|
8
|
+
- Breaking change: put API models under Yammer::Resources
|
9
|
+
|
1
10
|
1.1.0
|
2
11
|
====================================
|
3
12
|
- added support for activity api
|
data/README.md
CHANGED
@@ -48,13 +48,30 @@ Setup a Yammer client application as described on the [Yammer Developer site](ht
|
|
48
48
|
|
49
49
|
### Obtaining an access token
|
50
50
|
|
51
|
-
1. Construct the following
|
51
|
+
1. Construct the following GET request using the client_id you received ``
|
52
|
+
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
GET https://www.yammer.com/dialog/oauth?client_id=[:client_id]&response_type=code
|
56
|
+
```
|
52
57
|
|
53
58
|
2. Have your users follow the URL you constructed above to allow your application to access their data
|
54
59
|
|
55
60
|
3. After allowing access, your users will be redirected to your callback URL `http://[:redirect_uri]?code=[:code]`
|
56
61
|
|
57
|
-
4. Exchange the code for an access token by making
|
62
|
+
4. Exchange the code for an access token by making a POST request to Yammer
|
63
|
+
|
64
|
+
```ruby
|
65
|
+
POST /oauth2/access_token.json HTTP/1.1
|
66
|
+
Host: www.yammer.com
|
67
|
+
Content-Type: application/x-www-form-urlencoded
|
68
|
+
|
69
|
+
client_id=[:client_id]
|
70
|
+
client_secret=[:client_secret]
|
71
|
+
code=[:code]
|
72
|
+
redirect_uri=https://example.com/oauth2/callback
|
73
|
+
grant_type=authorization_code
|
74
|
+
```
|
58
75
|
|
59
76
|
5. The authorization server will respond with an access token
|
60
77
|
|
@@ -39,7 +39,7 @@ module Yammer
|
|
39
39
|
# :image => 'https://microsoft.com/global/images/test.jpg'
|
40
40
|
# })
|
41
41
|
def create_open_graph_object(url, props={})
|
42
|
-
post("/api/v1/open_graph_objects", { :url => url, :
|
42
|
+
post("/api/v1/open_graph_objects", { :url => url, :properties => props })
|
43
43
|
end
|
44
44
|
|
45
45
|
# Subscribes the current user to the open graph object with the request id.
|
data/lib/yammer/version.rb
CHANGED
@@ -16,7 +16,7 @@ module Yammer
|
|
16
16
|
class Version
|
17
17
|
MAJOR = 2 unless defined? Yammer::MAJOR
|
18
18
|
MINOR = 0 unless defined? Yammer::MINOR
|
19
|
-
PATCH =
|
19
|
+
PATCH = 1 unless defined? Yammer::PATCH
|
20
20
|
PRE = nil unless defined? Yammer::PRE
|
21
21
|
|
22
22
|
class << self
|
@@ -41,7 +41,7 @@ describe Yammer::Api::Search do
|
|
41
41
|
}
|
42
42
|
subject.should_receive(:post).with('/api/v1/open_graph_objects', {
|
43
43
|
:url=>"http://www.example.com",
|
44
|
-
:
|
44
|
+
:properties => {
|
45
45
|
:site_name => "Microsoft",
|
46
46
|
:image => "https://example.com/global/images/test.jpg"
|
47
47
|
}
|
@@ -64,4 +64,4 @@ describe Yammer::Api::Search do
|
|
64
64
|
subject.get_activity_stream_open_graph_objects(4)
|
65
65
|
end
|
66
66
|
end
|
67
|
-
end
|
67
|
+
end
|
data/yam.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.name = 'yam'
|
26
26
|
s.version = Yammer::Version
|
27
27
|
|
28
|
-
s.date = %q{2013-
|
28
|
+
s.date = %q{2013-12-04}
|
29
29
|
s.summary = "Yammer API Client"
|
30
30
|
|
31
31
|
s.description = "A Ruby wrapper for accessing Yammer's REST API"
|
@@ -51,6 +51,7 @@ Gem::Specification.new do |s|
|
|
51
51
|
s.add_development_dependency 'rspec'
|
52
52
|
s.add_development_dependency 'simplecov', '>= 0.7.1'
|
53
53
|
s.add_development_dependency 'webmock', '>= 1.9.0'
|
54
|
+
s.add_development_dependency 'yard', '>= 0.8.7.3'
|
54
55
|
|
55
56
|
s.post_install_message = %q{ Thanks for installing! For API help go to http://developer.yammer.com }
|
56
57
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Mutyaba
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
B+kZ9/4dAvmKkr2NPSoxBQtO7Rz0HDNLtjMxkXbQUWMDsGnB6Kk1WUBb/w3kQ9Ah
|
32
32
|
JgIHF4cG
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2013-
|
34
|
+
date: 2013-12-04 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: oj
|
@@ -145,6 +145,20 @@ dependencies:
|
|
145
145
|
- - '>='
|
146
146
|
- !ruby/object:Gem::Version
|
147
147
|
version: 1.9.0
|
148
|
+
- !ruby/object:Gem::Dependency
|
149
|
+
name: yard
|
150
|
+
requirement: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - '>='
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: 0.8.7.3
|
155
|
+
type: :development
|
156
|
+
prerelease: false
|
157
|
+
version_requirements: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - '>='
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: 0.8.7.3
|
148
162
|
description: A Ruby wrapper for accessing Yammer's REST API
|
149
163
|
email: kmutyaba@yammer-inc.com
|
150
164
|
executables: []
|
@@ -299,3 +313,4 @@ test_files:
|
|
299
313
|
- spec/resources/thread_spec.rb
|
300
314
|
- spec/resources/user_spec.rb
|
301
315
|
- spec/spec_helper.rb
|
316
|
+
has_rdoc:
|
metadata.gz.sig
CHANGED
Binary file
|