Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zimbra-admin-api-js
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Public
zimbra-admin-api-js
Commits
37ef6581
Commit
37ef6581
authored
May 24, 2016
by
Patricio Bruna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change api-key to api-token
parent
07e7622d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
client.jsx
src/utils/client.jsx
+3
-3
No files found.
src/utils/client.jsx
View file @
37ef6581
...
...
@@ -157,7 +157,7 @@ export function getAllCompanies() {
return
$
.
ajax
({
url
,
beforeSend
:
function
setApiToken
(
xhrObj
)
{
xhrObj
.
setRequestHeader
(
'x-api-
token
'
,
window
.
manager_config
.
user_token
);
xhrObj
.
setRequestHeader
(
'x-api-
key
'
,
window
.
manager_config
.
user_token
);
},
dataType
:
'json'
,
success
:
function
onSuccess
(
data
)
{
...
...
@@ -176,7 +176,7 @@ export function getCompany(id, success, error) {
return
$
.
ajax
({
url
,
beforeSend
:
function
setApiToken
(
xhrObj
)
{
xhrObj
.
setRequestHeader
(
'x-api-
token
'
,
window
.
manager_config
.
user_token
);
xhrObj
.
setRequestHeader
(
'x-api-
key
'
,
window
.
manager_config
.
user_token
);
},
dataType
:
'json'
,
success
:
function
onSuccess
(
data
)
{
...
...
@@ -194,7 +194,7 @@ export function getInvoices(id, success, error) {
return
$
.
ajax
({
url
,
beforeSend
:
function
setApiToken
(
xhrObj
)
{
xhrObj
.
setRequestHeader
(
'x-api-
token
'
,
window
.
manager_config
.
user_token
);
xhrObj
.
setRequestHeader
(
'x-api-
key
'
,
window
.
manager_config
.
user_token
);
},
dataType
:
'json'
,
success
,
...
...
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