RTwitter 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +35 -27
- data/README.md~ +29 -0
- data/lib/RTwitter/version.rb +1 -1
- data/lib/RTwitter/version.rb~ +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a6c8be7c9134b7dc36c4c07864b5f68661e0c9c
|
4
|
+
data.tar.gz: 4c43f02f107e478a722c86058ae755782db4a9b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f89173aed8e426c1abda9f90e447a77ee3467d4959a8f1d90793c81a7cf893b2a51c31844b18479fb9c42fdf9b2f10b1ccf6fe6b603cf4bd278ef470d59c94b6
|
7
|
+
data.tar.gz: c1f06d9d4ade0efb6fc12bcbad98ec9de9d39bab1c6fbb0b8f504f699ba57ed4c8089a84fb0cb2379cdae67bf1d10ef0f1a56261e672d511bd6587968324d1e1
|
data/README.md
CHANGED
@@ -1,29 +1,37 @@
|
|
1
1
|
# RTwitter
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
##
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
3
|
+
You can use REST and **Streaming** API.
|
4
|
+
|
5
|
+
## How to use ?
|
6
|
+
|
7
|
+
+ Require
|
8
|
+
`require'RTwitter'`
|
9
|
+
|
10
|
+
+ New Instance
|
11
|
+
If you have access\_token and access\_token\_secret
|
12
|
+
`rt = RTwitter.new(ck,cks,at,ats)`
|
13
|
+
If you don't have...
|
14
|
+
`rt = RTwitter.new(ck,cks)`
|
15
|
+
`puts rt.request_token`
|
16
|
+
`rt.access_token(pin)`
|
17
|
+
|
18
|
+
+ POST request
|
19
|
+
`result = rt.post(endpoint,{parameter => value})`
|
20
|
+
example...
|
21
|
+
`endpoint = 'statuses/update'`
|
22
|
+
`parameter = 'status'`
|
23
|
+
`value = 'Hello World!'`
|
24
|
+
|
25
|
+
+ GET request
|
26
|
+
`result = rt.get(endpoint,{parameter => value})`
|
27
|
+
example...
|
28
|
+
`endpoint = 'users/show'`
|
29
|
+
`parameter = 'screen_name'`
|
30
|
+
`value = 'CIA'`
|
31
|
+
|
32
|
+
+ Streaming
|
33
|
+
`rt.streaming(endpoint,{parameter => value}){|status| p status }`
|
34
|
+
example...
|
35
|
+
`endpoint = 'statuses/filter'`
|
36
|
+
`parameter = 'track'`
|
37
|
+
`value = 'Hello'`
|
data/README.md~
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# RTwitter
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'RTwitter'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install RTwitter
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
+
5. Create new Pull Request
|
data/lib/RTwitter/version.rb
CHANGED
data/lib/RTwitter/version.rb~
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: RTwitter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seurix
|
@@ -49,6 +49,7 @@ files:
|
|
49
49
|
- Gemfile
|
50
50
|
- LICENSE.txt
|
51
51
|
- README.md
|
52
|
+
- README.md~
|
52
53
|
- RTwitter.gemspec
|
53
54
|
- Rakefile
|
54
55
|
- lib/RTwitter.rb
|