vine_client 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.md +48 -3
- data/lib/vine_client/client.rb +4 -0
- data/vine_client.gemspec +2 -2
- metadata +1 -2
data/README.md
CHANGED
@@ -1,4 +1,49 @@
|
|
1
|
-
vine_client
|
2
|
-
|
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
|
+
#return the list of popular posts
|
31
|
+
user.get_popular
|
32
|
+
|
33
|
+
#user timeline
|
34
|
+
user.timelines('user_id')
|
35
|
+
|
36
|
+
#tags
|
37
|
+
user.tag(tag)
|
38
|
+
|
39
|
+
#notfifications
|
40
|
+
|
41
|
+
user.notifications('user_id')
|
42
|
+
|
43
|
+
#logout
|
44
|
+
|
45
|
+
user.logout
|
46
|
+
```
|
47
|
+
|
48
|
+
|
3
49
|
|
4
|
-
vine_client
|
data/lib/vine_client/client.rb
CHANGED
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.2'
|
4
4
|
s.date = '2013-07-14'
|
5
5
|
s.summary = "vine_client"
|
6
6
|
s.description = "ruby wraper for vine.co api"
|
@@ -12,5 +12,5 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.add_runtime_dependency 'faraday_middleware', '~> 0.8'
|
13
13
|
s.require_paths = ['lib']
|
14
14
|
s.homepage = 'https://github.com/obrigan228/vine_client'
|
15
|
-
s.licenses = ['MIT'
|
15
|
+
s.licenses = ['MIT']
|
16
16
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vine_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -58,7 +58,6 @@ files:
|
|
58
58
|
homepage: https://github.com/obrigan228/vine_client
|
59
59
|
licenses:
|
60
60
|
- MIT
|
61
|
-
- GPL-2
|
62
61
|
post_install_message:
|
63
62
|
rdoc_options: []
|
64
63
|
require_paths:
|