payload-api 0.3.0 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/payload/arm/request.rb +2 -2
- data/lib/payload/objects.rb +9 -0
- data/lib/payload/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: 16701a789efbe6cd8db196282866c1fbe466062498e78b1e574cd55c49e76f86
|
4
|
+
data.tar.gz: 2feafbc3e039e0791a1949aca35c14d5f0a7b67865cf93cbd981318ddba3a2c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20abdf730b82f46b8a91da28babe36ef47f5e0820dfe1547a65d17e5128f6ca16f95cc70ebf3f577b078e9b173144d54fb19c17267247c0e33cb6055bdef42cf
|
7
|
+
data.tar.gz: cdd45d5cf7eb05913138929b6b1a0b4f6e094120d11ccaba9b42ee2265957c28873d683c32c337cf0313495d68a92d24a2a425700331da6190b4c1759ab808fc
|
data/lib/payload/arm/request.rb
CHANGED
@@ -194,10 +194,10 @@ module Payload
|
|
194
194
|
next
|
195
195
|
end
|
196
196
|
|
197
|
-
raise error.new(data['
|
197
|
+
raise error.new(data['error_description'], data)
|
198
198
|
end
|
199
199
|
|
200
|
-
raise Payload::BadRequest.new(data['
|
200
|
+
raise Payload::BadRequest.new(data['error_description'], data)
|
201
201
|
end
|
202
202
|
end
|
203
203
|
end
|
data/lib/payload/objects.rb
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
require "payload/arm/object"
|
2
2
|
|
3
3
|
module Payload
|
4
|
+
class AccessToken < ARMObject
|
5
|
+
@spec = { 'object' => 'account' }
|
6
|
+
end
|
7
|
+
|
8
|
+
class ClientToken < ARMObject
|
9
|
+
@spec = { 'object' => 'access_token' }
|
10
|
+
@poly = { 'type' => 'client' }
|
11
|
+
end
|
12
|
+
|
4
13
|
class Account < ARMObject
|
5
14
|
@spec = { 'object' => 'account' }
|
6
15
|
end
|
data/lib/payload/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: payload-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Payload
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A simple library to interface with the Payload API. See https://docs.payload.co
|
14
14
|
for details.
|