You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is currently work in progress. Package will be published to NPM registry once everything will be ready. Use source code at your own risk.
4
+
A Workfront API for the Node and the Web
10
5
11
6
12
7
## Usage
@@ -15,11 +10,11 @@ This is currently work in progress. Package will be published to NPM registry on
15
10
16
11
Install as a dependency:
17
12
18
-
npm install --save attask-api
13
+
npm install --save workfront-api
19
14
20
-
Then `require('attask-api')` in your code. For example:
15
+
Then `require('workfront-api')` in your code. For example:
21
16
```javascript
22
-
varattask=require('attask-api'),
17
+
varWorkfront=require('workfront-api'),
23
18
util =require('util');
24
19
25
20
/**
@@ -31,40 +26,40 @@ var attask = require('attask-api'),
31
26
* ApiConstants: [Object]
32
27
* }
33
28
*/
34
-
console.log(util.inspect(attask, {depth:0}));
29
+
console.log(util.inspect(Workfront, {depth:0}));
35
30
```
36
31
37
32
#### In a browser
38
33
39
-
This package uses [Browserify](http://browserify.org) to generate [dist/attask.min.js](dist/attask.min.js). Loading that script will create `window.AtTask` object which will contain all the classes and methods just as in the server-side environment (see [Server-side](#server-side) section).
40
-
This package makes use of [Promises](https://www.promisejs.org). Promises are not currently supported by all browsers (see [kangax compatibility tables](http://kangax.github.io/compat-table/es6/#Promise) but there are many polyfills available, including one listed in [www.promisejs.org](https://www.promisejs.org). Load polyfill before `attask.min.js` and everything will work just fine.
41
-
Although the lack of CORS support may prevent you from sending request to AtTask servers, there are some usage examples in [examples/browser](examples/browser) folder to give you an idea.
34
+
This package uses [Browserify](http://browserify.org) to generate [dist/workfront.min.js](dist/workfront.min.js). Loading that script will create `window.Workfront` object which will contain all the classes and methods just as in the server-side environment (see [Server-side](#server-side) section).
35
+
This package makes use of [Promises](https://www.promisejs.org). Promises are not currently supported by all browsers (see [kangax compatibility tables](http://kangax.github.io/compat-table/es6/#Promise) but there are many polyfills available, including one listed in [www.promisejs.org](https://www.promisejs.org). Load polyfill before `workfront.min.js` and everything will work just fine.
36
+
Although the lack of CORS support may prevent you from sending request to Workfront servers, there are some usage examples in [examples/browser](examples/browser) folder to give you an idea.
42
37
43
38
44
39
## Documentation
45
40
46
-
API documentation is available at [http://bhovhannes.github.io/attask-api/](http://bhovhannes.github.io/attask-api/).
41
+
API documentation is available at [http://workfront.github.io/workfront-api/](http://workfront.github.io/workfront-api/).
47
42
48
43
49
44
## Examples
50
45
51
46
A number of examples can be found under [examples](examples) directory. It includes examples for both [node](examples/node) and [browser](examples/browser) environments.
52
-
In order to run these examples clone a copy of attask-api repository:
47
+
In order to run these examples clone a copy of workfront-api repository:
0 commit comments