orkut 0.0.0.21 → 0.0.0.22
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/lib/orkut/client/messages.rb +16 -0
- data/lib/orkut/client/timelines.rb +24 -8
- data/lib/orkut/constants/fields.rb +2 -0
- data/lib/orkut/constants/params.rb +0 -2
- data/lib/orkut/version.rb +1 -1
- metadata +6 -6
@@ -40,6 +40,22 @@ module Orkut
|
|
40
40
|
}]
|
41
41
|
MultiJson.decode(post_v1(nil, params.to_s, default_headers).body)
|
42
42
|
end
|
43
|
+
|
44
|
+
def update_status(options={})
|
45
|
+
raise(Orkut::Error, "Parameters body cannot be nil") if options[:body].blank?
|
46
|
+
params = [{
|
47
|
+
Orkut::Constants::Fields::PARAMS => {
|
48
|
+
Orkut::Constants::Fields::GROUP_ID => Orkut::Constants::Group::SELF,
|
49
|
+
Orkut::Constants::Fields::USER_ID => Orkut::Constants::InternalConstants::USERID_ME,
|
50
|
+
Orkut::Constants::Fields::PERSON => {
|
51
|
+
Orkut::Constants::Fields::STATUS => options[:status]
|
52
|
+
}
|
53
|
+
},
|
54
|
+
Orkut::Constants::Fields::ID => request_id.to_s+'-'+Orkut::Constants::MethodNames::PEOPLE_UPDATE,
|
55
|
+
Orkut::Constants::Fields::METHOD => Orkut::Constants::MethodNames::PEOPLE_UPDATE
|
56
|
+
}]
|
57
|
+
MultiJson.decode(post_v1(nil, params.to_s, default_headers).body)
|
58
|
+
end
|
43
59
|
end
|
44
60
|
end
|
45
61
|
end
|
@@ -59,15 +59,13 @@ module Orkut
|
|
59
59
|
unless options[:page_token].blank?
|
60
60
|
params[Orkut::Constants::Fields::PAGE_TOKEN] = options[:page_token]
|
61
61
|
end
|
62
|
-
|
63
|
-
|
64
|
-
|
62
|
+
result = execute(Orkut::Constants::Fields::ACTIVITIES, Orkut::Constants::Action::LIST, params)
|
63
|
+
begin
|
64
|
+
MultiJson.decode(result)
|
65
65
|
rescue StandardError => exception
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
puts params.inspect
|
70
|
-
puts '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%'
|
66
|
+
puts exception.message
|
67
|
+
puts result.inspect
|
68
|
+
puts params.inspect
|
71
69
|
end
|
72
70
|
end
|
73
71
|
|
@@ -84,6 +82,24 @@ module Orkut
|
|
84
82
|
end
|
85
83
|
MultiJson.decode(execute(Orkut::Constants::Fields::ACTIVITIES, Orkut::Constants::Action::LIST, params))
|
86
84
|
end
|
85
|
+
|
86
|
+
#def insert_post_v1(options={})
|
87
|
+
# raise(Orkut::Error, 'Parameters body and title cannot be nil') if options[:body].blank? or options[:title].blank?
|
88
|
+
# params = [{
|
89
|
+
# Orkut::Constants::Fields::PARAMS => {
|
90
|
+
# Orkut::Constants::Fields::GROUP_ID => Orkut::Constants::Group::SELF,
|
91
|
+
# Orkut::Constants::Fields::USER_ID => Orkut::Constants::InternalConstants::USERID_VIEWER,
|
92
|
+
# Orkut::Constants::Fields::APP_ID => Orkut::Constants::InternalConstants::Values::APP,
|
93
|
+
# Orkut::Constants::Fields::ACTIVITY => {
|
94
|
+
# Orkut::Constants::Fields::BODY => options[:body],
|
95
|
+
# Orkut::Constants::Fields::TITLE => options[:title]
|
96
|
+
# }
|
97
|
+
# },
|
98
|
+
# Orkut::Constants::Fields::ID => request_id.to_s+'-'+Orkut::Constants::MethodNames::CREATE_ACTIVITIES,
|
99
|
+
# Orkut::Constants::Fields::METHOD => Orkut::Constants::MethodNames::CREATE_ACTIVITIES
|
100
|
+
# }]
|
101
|
+
# MultiJson.decode(post_v1(nil, params.to_s, default_headers).body)
|
102
|
+
#end
|
87
103
|
end
|
88
104
|
end
|
89
105
|
end
|
data/lib/orkut/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orkut
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.0.
|
4
|
+
version: 0.0.0.22
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-11-
|
12
|
+
date: 2011-11-08 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth
|
16
|
-
requirement: &
|
16
|
+
requirement: &19729680 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.3.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *19729680
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: multi_json
|
27
|
-
requirement: &
|
27
|
+
requirement: &19729080 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *19729080
|
36
36
|
description: A Ruby wrapper for the Orkut REST/RPC API.
|
37
37
|
email:
|
38
38
|
- contato@umanni.com
|