We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b639822 commit b643551Copy full SHA for b643551
2 files changed
lib/api/base_api.rb
@@ -21,6 +21,16 @@ def configure(options = {})
21
@logger = options[:logger] if options[:logger]
22
end
23
24
+ def has_error?
25
+ @error.present?
26
+ end
27
+
28
+ def get_error
29
+ tmp_error = @error
30
+ @error = nil
31
+ tmp_error
32
33
34
def error
35
@error
36
lib/buffer_client.rb
@@ -21,12 +21,24 @@ def configure(options = {})
@profile_api = ProfileApi.configure(options)
37
38
def get_auth_token
- @auth_api.get_auth_token
39
+ token = @auth_api.get_auth_token
40
+ if @auth_api.has_error?
41
42
43
44
def get_user_id
0 commit comments