twitter_labs_api 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/twitter_labs_api.rb +2 -2
- data/lib/twitter_labs_api/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13b7d27a82ec7637bded5657ab9a74e7b847236dc5377d5409cdf624ea8c8d73
|
4
|
+
data.tar.gz: 4267e671b4e6b42cecb79dd7ea63151dfd36769bc386d690027e295ce5d81efd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b6e3b2865de73eff4c74e5e0229f83358153af6a00c976bf8de0b0863e29b85875a0f52ea88af8e594caf9eeb0b00f04d37526cf6904f51c71263b07685c831
|
7
|
+
data.tar.gz: b753f4ed2f3f3ca7f8cd72647bb92abe91e973b1cc08d5c206c79f1b6cfab0c801abf1e055a1515adc3369db71eaa9c1e4bbb2691532942f9c3dbadbf2dae976
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -45,8 +45,8 @@ Currently, the following endpoints are implemented:
|
|
45
45
|
|
46
46
|
- `TwitterLabsAPI#get_tweet` - Retrieve a single Tweet object with an `id`
|
47
47
|
- `TwitterLabsAPI#get_tweets` - Retrieve multiple Tweets with a collection of `ids`
|
48
|
-
- `TwitterLabsAPI#get_user
|
49
|
-
- `TwitterLabsAPI#get_users
|
48
|
+
- `TwitterLabsAPI#get_user` - Retrieve a single user object with an `id`
|
49
|
+
- `TwitterLabsAPI#get_users` - Retrieve multiple user objects with a collection of `ids`
|
50
50
|
|
51
51
|
## Roadmap
|
52
52
|
|
data/lib/twitter_labs_api.rb
CHANGED
@@ -6,12 +6,12 @@ require 'active_support/core_ext/hash/indifferent_access'
|
|
6
6
|
DEFAULT_TWEET_FIELDS = %w[id author_id created_at lang public_metrics].freeze
|
7
7
|
DEFAULT_USER_FIELDS = %w[name username].freeze
|
8
8
|
|
9
|
-
class TwitterLabsAPIError < StandardError; end
|
10
|
-
|
11
9
|
# A basic implementation of a Twitter Labs API client.
|
12
10
|
class TwitterLabsAPI
|
13
11
|
attr_accessor :bearer_token, :debug, :api_response, :parsed_response
|
14
12
|
|
13
|
+
class TwitterLabsAPIError < StandardError; end
|
14
|
+
|
15
15
|
def initialize(bearer_token:, debug: false)
|
16
16
|
@bearer_token = bearer_token
|
17
17
|
@debug = debug
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitter_labs_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tomholford
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
|
-
rubygems_version: 3.
|
82
|
+
rubygems_version: 3.1.2
|
83
83
|
signing_key:
|
84
84
|
specification_version: 4
|
85
85
|
summary: A basic implementation of a Twitter Labs API client in Ruby
|