-
Notifications
You must be signed in to change notification settings - Fork 0
Application #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Application #1
Conversation
… security purpose)
.gitignore
Outdated
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| package-lock.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not ignore this file
.gitignore
Outdated
| .serverless | ||
|
|
||
| # test file | ||
| mytest.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this
README.md
Outdated
| @@ -0,0 +1,68 @@ | |||
| # Acrosure Node SDK | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NodeJS SDK
README.md
Outdated
| @@ -0,0 +1,68 @@ | |||
| # Acrosure Node SDK | |||
|
|
|||
| The official Acrosure SDK for NodeJS. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove .
README.md
Outdated
| install via npm | ||
|
|
||
| ```shell | ||
| npm install acrosure-nodejs-sdk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npm install --save acrosure-nodejs-sdk
| ```shell | ||
| npm install acrosure-nodejs-sdk | ||
| ``` | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add yarn option
README.md
Outdated
| const existedApp = await client.applications.get('Your-App-ID') | ||
| ``` | ||
|
|
||
| or create via Acrosure.base.Application |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove .base
src/util/connectAPI.js
Outdated
| const http = require('https') | ||
| const querystring = require('querystring') | ||
|
|
||
| const connectAPI = (endpoint, data) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO should be callAPI
src/util/connectAPI.js
Outdated
| @@ -0,0 +1,49 @@ | |||
| import constant from '../constant'; | |||
|
|
|||
| const http = require('https') | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https =
test/application.test.js
Outdated
| expect(res.status).toEqual('ok') | ||
| }) | ||
|
|
||
| // it('change value in application', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove commented code if unused
you can use it.skip to skip the test case
|
changed |
No description provided.