vine_client 0.0.3 → 0.0.4
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.
- checksums.yaml +7 -0
- data/.gitignore +18 -18
- data/README.md +52 -49
- data/lib/vine_client/client.rb +14 -3
- data/vine_client.gemspec +2 -2
- metadata +11 -17
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5a806c87c86546f5446ea6b8381ff5480c2ebf76
|
4
|
+
data.tar.gz: 52510e661ac52175cf38de173872df225a929570
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8c640a3cb9ceb99a11738ea01b5f336e58bf4d30c099965cb10241513794eb24f3a5896fba8b50c671cf674396657fd7d70882979feda60524dd0af5495e1d2e
|
7
|
+
data.tar.gz: 18fecad879c3c396509d43f2f0d881a8ad371de74336badcad874a71e30fc84c2fd39ba69f27662a48a1491208009f6a089a608348ef2108bd0d37c6046661b7
|
data/.gitignore
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
.bundle
|
4
|
-
.config
|
5
|
-
coverage
|
6
|
-
InstalledFiles
|
7
|
-
lib/bundler/man
|
8
|
-
pkg
|
9
|
-
rdoc
|
10
|
-
spec/reports
|
11
|
-
test/tmp
|
12
|
-
test/version_tmp
|
13
|
-
tmp
|
14
|
-
|
15
|
-
# YARD artifacts
|
16
|
-
.yardoc
|
17
|
-
_yardoc
|
18
|
-
doc/
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
coverage
|
6
|
+
InstalledFiles
|
7
|
+
lib/bundler/man
|
8
|
+
pkg
|
9
|
+
rdoc
|
10
|
+
spec/reports
|
11
|
+
test/tmp
|
12
|
+
test/version_tmp
|
13
|
+
tmp
|
14
|
+
|
15
|
+
# YARD artifacts
|
16
|
+
.yardoc
|
17
|
+
_yardoc
|
18
|
+
doc/
|
data/README.md
CHANGED
@@ -1,49 +1,52 @@
|
|
1
|
-
#vine_client
|
2
|
-
|
3
|
-
`vine_client` - This is the simple Ruby wrapper for the Vine API.
|
4
|
-
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
``` ruby
|
8
|
-
# Gemfile
|
9
|
-
gem 'vine_client'
|
10
|
-
```
|
11
|
-
|
12
|
-
or
|
13
|
-
|
14
|
-
``` sh
|
15
|
-
$ gem install vine_client
|
16
|
-
```
|
17
|
-
|
18
|
-
## Usage
|
19
|
-
|
20
|
-
###Authentication
|
21
|
-
``` ruby
|
22
|
-
user=Vine::Client.new('username','password')
|
23
|
-
```
|
24
|
-
### Method calls
|
25
|
-
|
26
|
-
```ruby
|
27
|
-
#user info
|
28
|
-
user.user_info('user_id')#default current user id
|
29
|
-
|
30
|
-
#
|
31
|
-
user.
|
32
|
-
|
33
|
-
#
|
34
|
-
user.
|
35
|
-
|
36
|
-
#
|
37
|
-
user.
|
38
|
-
|
39
|
-
#
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
1
|
+
#vine_client
|
2
|
+
|
3
|
+
`vine_client` - This is the simple Ruby wrapper for the Vine API.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
``` ruby
|
8
|
+
# Gemfile
|
9
|
+
gem 'vine_client'
|
10
|
+
```
|
11
|
+
|
12
|
+
or
|
13
|
+
|
14
|
+
``` sh
|
15
|
+
$ gem install vine_client
|
16
|
+
```
|
17
|
+
|
18
|
+
## Usage
|
19
|
+
|
20
|
+
###Authentication
|
21
|
+
``` ruby
|
22
|
+
user=Vine::Client.new('username','password')
|
23
|
+
```
|
24
|
+
### Method calls
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
#user info
|
28
|
+
user.user_info('user_id')#default current user id
|
29
|
+
|
30
|
+
#search user by username
|
31
|
+
user.search('username',page)
|
32
|
+
|
33
|
+
#return the list of popular posts
|
34
|
+
user.get_popular
|
35
|
+
|
36
|
+
#user timeline
|
37
|
+
user.timelines('user_id')
|
38
|
+
|
39
|
+
#tags
|
40
|
+
user.tag(tag)
|
41
|
+
|
42
|
+
#notfifications
|
43
|
+
|
44
|
+
user.notifications('user_id')
|
45
|
+
|
46
|
+
#logout
|
47
|
+
|
48
|
+
user.logout
|
49
|
+
```
|
50
|
+
|
51
|
+
|
52
|
+
|
data/lib/vine_client/client.rb
CHANGED
@@ -31,12 +31,23 @@ module Vine
|
|
31
31
|
get("/timelines/users/#{user_id}")
|
32
32
|
end
|
33
33
|
|
34
|
-
def tag(tag=nil)
|
35
|
-
|
34
|
+
def tag(tag=nil, page=nil)
|
35
|
+
if tag
|
36
|
+
if page
|
37
|
+
get("/timelines/tags/#{tag}?page=#{page}")
|
38
|
+
else
|
39
|
+
get("/timelines/tags/#{tag}")
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
36
43
|
end
|
37
44
|
|
38
45
|
def notifications(user_id=@userId)
|
39
46
|
get("/users/#{user_id}/pendingNotificationsCount")
|
40
47
|
end
|
48
|
+
|
49
|
+
def like(post_id=nil)
|
50
|
+
post("/posts/#{post_id}/likes") if post_id
|
51
|
+
end
|
41
52
|
end
|
42
|
-
end
|
53
|
+
end
|
data/vine_client.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'vine_client'
|
3
|
-
s.version = '0.0.
|
3
|
+
s.version = '0.0.4'
|
4
4
|
s.date = '2013-07-14'
|
5
5
|
s.summary = "vine_client"
|
6
6
|
s.description = "ruby wraper for vine.co api"
|
@@ -13,4 +13,4 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.require_paths = ['lib']
|
14
14
|
s.homepage = 'https://github.com/obrigan228/vine_client'
|
15
15
|
s.licenses = ['MIT']
|
16
|
-
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vine_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Roman Lozhkin
|
@@ -14,33 +13,29 @@ dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: faraday
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0.8'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0.8'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: faraday_middleware
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0.8'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0.8'
|
46
41
|
description: ruby wraper for vine.co api
|
@@ -49,7 +44,7 @@ executables: []
|
|
49
44
|
extensions: []
|
50
45
|
extra_rdoc_files: []
|
51
46
|
files:
|
52
|
-
- .gitignore
|
47
|
+
- ".gitignore"
|
53
48
|
- README.md
|
54
49
|
- lib/vine_client.rb
|
55
50
|
- lib/vine_client/client.rb
|
@@ -58,26 +53,25 @@ files:
|
|
58
53
|
homepage: https://github.com/obrigan228/vine_client
|
59
54
|
licenses:
|
60
55
|
- MIT
|
56
|
+
metadata: {}
|
61
57
|
post_install_message:
|
62
58
|
rdoc_options: []
|
63
59
|
require_paths:
|
64
60
|
- lib
|
65
61
|
required_ruby_version: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
62
|
requirements:
|
68
|
-
- -
|
63
|
+
- - ">="
|
69
64
|
- !ruby/object:Gem::Version
|
70
65
|
version: 1.9.2
|
71
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
67
|
requirements:
|
74
|
-
- -
|
68
|
+
- - ">="
|
75
69
|
- !ruby/object:Gem::Version
|
76
70
|
version: '0'
|
77
71
|
requirements: []
|
78
72
|
rubyforge_project:
|
79
|
-
rubygems_version:
|
73
|
+
rubygems_version: 2.2.2
|
80
74
|
signing_key:
|
81
|
-
specification_version:
|
75
|
+
specification_version: 4
|
82
76
|
summary: vine_client
|
83
77
|
test_files: []
|