agx 0.2.9 → 0.3.0
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/README.md +0 -33
- data/lib/agx/content/client.rb +1 -1
- data/lib/agx/sync/client.rb +1 -1
- data/lib/agx/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e857bc1af586908c17bd9d4979f4d6da3b973e27cec3fa30f5708e76babdf8ad
|
|
4
|
+
data.tar.gz: a0f1d070afad995898c7793d5fdcc5a52a58bcb4e6c0bef106e0a67d43fb1ed5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e67bdc8cb9b810593cc3fd57b4332104fa005c8821250549b723d08eef6af666b444441ea3e08a9053841c68012b499b5eacf4d09d2f1ef6db13056a0cdf2586
|
|
7
|
+
data.tar.gz: 3ed758095b42bd65d51230ece29d2224380af76f1f0384fb2f4a9fa9341eded7d70a2a9d1b1b35db3a3e36d7f97b3dc17e19e539be311e6d9945d8d60d7c7ac4
|
data/README.md
CHANGED
|
@@ -118,39 +118,6 @@ new_grower = {
|
|
|
118
118
|
user_transaction_id = nil
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
-
### agX Pictures API
|
|
122
|
-
|
|
123
|
-
*Note: The pictures API client implementation still needs more work.*
|
|
124
|
-
|
|
125
|
-
Setup agX Pictures Client
|
|
126
|
-
|
|
127
|
-
```ruby
|
|
128
|
-
@agx_pictures_client = Agx::Pictures::Client.new(
|
|
129
|
-
client_id: "your_client_id",
|
|
130
|
-
client_secret: "your_client_secret",
|
|
131
|
-
version: "v1", # optional
|
|
132
|
-
sync_id: "agx_user_sync_id",
|
|
133
|
-
access_token: "agx_user_agx_token",
|
|
134
|
-
refresh_token: "agx_user_refresh_token",
|
|
135
|
-
token_expires_at: "access_token_expiration_timestamp",
|
|
136
|
-
filepath: "/path/to/pictures/",
|
|
137
|
-
prod: true # optional, false for QA
|
|
138
|
-
)
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
Make get requests for Pictures API images and metadata
|
|
142
|
-
|
|
143
|
-
***Currently only get requests are supported***
|
|
144
|
-
```ruby
|
|
145
|
-
|
|
146
|
-
# Get metadata
|
|
147
|
-
image_meta = @agx_pictures_client.get_metadata("661ee0c0-0cbc-4a7b-be39-1a9de49acc86")
|
|
148
|
-
|
|
149
|
-
# Get image and save to {filepath}/{sync_id}_{picture_id}.jpeg
|
|
150
|
-
image = @agx_pictures_client.get("661ee0c0-0cbc-4a7b-be39-1a9de49acc86")
|
|
151
|
-
# => "/path/to/pictures/7_661ee0c0-0cbc-4a7b-be39-1a9de49acc86.jpeg"
|
|
152
|
-
```
|
|
153
|
-
|
|
154
121
|
## Development
|
|
155
122
|
|
|
156
123
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. To install this gem onto your local machine, run `bundle exec rake install`.
|
data/lib/agx/content/client.rb
CHANGED
data/lib/agx/sync/client.rb
CHANGED
data/lib/agx/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: agx
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bryce Johnston
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-07-
|
|
11
|
+
date: 2020-07-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: oj
|