Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zoholib
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gems
zoholib
Commits
e9a46110
Commit
e9a46110
authored
Jun 27, 2020
by
Jose Ernesto Suarez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4e47d4bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
zoho_basic_client.rb
lib/zoholib/zoho_basic_client.rb
+2
-2
No files found.
lib/zoholib/zoho_basic_client.rb
View file @
e9a46110
...
@@ -172,9 +172,9 @@ module Wedoops
...
@@ -172,9 +172,9 @@ module Wedoops
@logger
.
debug
(
"401 received! We need to update the token!"
)
@logger
.
debug
(
"401 received! We need to update the token!"
)
response
=
JSON
.
parse
(
response
.
to_s
,
symbolize_names:
true
)
response
=
JSON
.
parse
(
response
.
to_s
,
symbolize_names:
true
)
if
response
[
:code
]
==
"INVALID_TOKEN"
if
response
[
:code
]
==
"INVALID_TOKEN"
@logger
.
debug
(
"Repeating the call
#{
repeat
[
:method
]
}
with
#{
*
repeat
[
:parameters
]
}
"
)
@logger
.
debug
(
"Repeating the call
#{
repeat
[
:method
]
}
"
)
self
.
login
self
.
login
self
.
send
(
repeat
[
:method
],
*
repeat
[
:parameters
])
self
.
send
(
repeat
[
:method
],
*
repeat
[
:parameters
])
end
end
else
else
@logger
.
debug
(
"Unexpected response
#{
response
.
code
}
"
)
@logger
.
debug
(
"Unexpected response
#{
response
.
code
}
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment