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
4c47605c
Commit
4c47605c
authored
May 09, 2016
by
Patricio Bruna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added version and fixed BatchRequest error
parent
e042fe47
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
867 additions
and
800 deletions
+867
-800
README.md
README.md
+3
-0
zimbra-admin-api.js
lib/zimbra-admin-api.js
+855
-797
zimbra-admin-api.js.map
lib/zimbra-admin-api.js.map
+1
-1
package.json
package.json
+1
-1
index.js
src/index.js
+7
-1
No files found.
README.md
View file @
4c47605c
...
...
@@ -33,6 +33,9 @@ var callback = function(err, data) {
};
zimbraApi
.
getAllDomains
(
callback
);
ZimbraAdminApi
.
version
();
// "version"
```
## Install
...
...
lib/zimbra-admin-api.js
View file @
4c47605c
This source diff could not be displayed because it is too large. You can
view the blob
instead.
lib/zimbra-admin-api.js.map
View file @
4c47605c
This diff is collapsed.
Click to expand it.
package.json
View file @
4c47605c
{
"name"
:
"zimbra-admin-api-js"
,
"version"
:
"0.0.2
3
"
,
"version"
:
"0.0.2
4
"
,
"private"
:
true
,
"main"
:
"lib/zimbra-admin-api.js"
,
"dependencies"
:
{
...
...
src/index.js
View file @
4c47605c
...
...
@@ -2,6 +2,7 @@
// See LICENSE.txt for license information.
var
jszimbra
=
require
(
'js-zimbra'
);
var
pjson
=
require
(
'../package.json'
);
import
Dictionary
from
'./utils/dictionary.js'
;
import
ResponseParser
from
'./utils/response_parser.js'
;
import
Error
from
'./zimbra/error.js'
;
...
...
@@ -16,6 +17,10 @@ export default class ZimbraAdminApi {
this
.
dictionary
=
new
Dictionary
();
}
static
version
()
{
return
pjson
.
version
;
}
buildRequestData
(
request_name
,
callback
)
{
const
request_data
=
{
};
// TODO: Eliminar dependencia de client que se pasa a todos lados
...
...
@@ -81,8 +86,9 @@ export default class ZimbraAdminApi {
buildRequest
(
options
=
{})
{
let
request
=
null
;
const
that
=
this
;
this
.
client
.
getRequest
(
options
,
(
err
,
req
)
=>
{
if
(
err
)
return
error
(
err
);
if
(
err
)
return
console
.
error
(
err
);
request
=
req
;
});
return
request
;
...
...
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