twitter_api 0.1.7 → 0.1.8
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 +4 -4
- data/lib/twitter_api.rb +30 -0
- data/lib/twitter_api/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cc09a022d58f5e0622c294b63ab8fa854db3d841
|
|
4
|
+
data.tar.gz: 92060cde99fb966e29b8c790acf6314b32891d55
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: daf22e2626e45c0d38150a3339432ef3e7e6afe593e80bb9d2467edd61171a1028018283902a29b5d9eb7fa27ed25ed948d6f0dc91c662c79151ef4faf1106fc
|
|
7
|
+
data.tar.gz: de5c973426619de45888a637bcefffef762910b4c6a245ec13949f1e88fd376200e057ef157f52dc111063d32ad6a68c664749ef422de23f58c312ab37270bc3
|
data/lib/twitter_api.rb
CHANGED
|
@@ -99,6 +99,36 @@ module TwitterAPI
|
|
|
99
99
|
super
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
+
# GET direct_messages
|
|
103
|
+
# {https://dev.twitter.com/rest/reference/get/direct_messages}
|
|
104
|
+
#
|
|
105
|
+
# @param params [Hash] Parameters
|
|
106
|
+
# @return [TwitterAPI::Response]
|
|
107
|
+
def direct_messages(params)
|
|
108
|
+
resource_url = 'https://api.twitter.com/1.1/direct_messages.json'
|
|
109
|
+
get(resource_url, params)
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# GET direct_messages/sent
|
|
113
|
+
# {https://dev.twitter.com/rest/reference/get/direct_messages/sent}
|
|
114
|
+
#
|
|
115
|
+
# @param params [Hash] Parameters
|
|
116
|
+
# @return [TwitterAPI::Response]
|
|
117
|
+
def direct_messages_sent(params)
|
|
118
|
+
resource_url = 'https://api.twitter.com/1.1/direct_messages/sent.json'
|
|
119
|
+
get(resource_url, params)
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# GET direct_messages/show
|
|
123
|
+
# {https://dev.twitter.com/rest/reference/get/direct_messages/show}
|
|
124
|
+
#
|
|
125
|
+
# @param params [Hash] Parameters
|
|
126
|
+
# @return [TwitterAPI::Response]
|
|
127
|
+
def direct_messages_show(params)
|
|
128
|
+
resource_url = 'https://api.twitter.com/1.1/direct_messages/show.json'
|
|
129
|
+
get(resource_url, params)
|
|
130
|
+
end
|
|
131
|
+
|
|
102
132
|
# GET favorites/list
|
|
103
133
|
# {https://dev.twitter.com/rest/reference/get/favorites/list}
|
|
104
134
|
#
|
data/lib/twitter_api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: twitter_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Naoki Iwasawa
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-08-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: simple_oauth
|
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
106
106
|
version: '0'
|
|
107
107
|
requirements: []
|
|
108
108
|
rubyforge_project:
|
|
109
|
-
rubygems_version: 2.6.
|
|
109
|
+
rubygems_version: 2.6.11
|
|
110
110
|
signing_key:
|
|
111
111
|
specification_version: 4
|
|
112
112
|
summary: Twitter API Ruby thin client wrapper library
|