Skip to content

Commit

Permalink
Bug fixes, name changes, support for pausing API
Browse files Browse the repository at this point in the history
  • Loading branch information
auralia committed Nov 13, 2016
1 parent 8a9a365 commit 40edf79
Show file tree
Hide file tree
Showing 5 changed files with 187 additions and 97 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.1.3 ##

* Bug fixes
* Add support for temporarily blocking the API

## 0.1.2 ##

* Bug fixes
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ it to the console.
```js
var nsapi = require("nsapi");

// Create main API object
var api = new nsapi.Api("Example user agent");
// Create main API object (replace the user agent with your own)
var api = new nsapi.NationStatesApi("<user agent>");

// The following is a simple example that retrieves a nation's full name and
// prints it to the console.
Expand Down
5 changes: 3 additions & 2 deletions example/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

var nsapi = require("../lib/api.js");

// Create main API object
var api = new nsapi.Api("Example user agent");
// Create main API object (replace the user agent with your own)
var api = new nsapi.NationStatesApi("<user agent>");

// The following is a simple example that retrieves a nation's full name and
// prints it to the console.
Expand Down Expand Up @@ -76,6 +76,7 @@ function example2() {
// with a nation from the last 24 hours and print them to the console, along
// with the PIN required for future private shard requests.
function example3() {
// Replace the nation name and password with your own
let auth = {
password: "<your password>",
updatePin: true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nsapi",
"version": "0.1.2",
"version": "0.1.3",
"description": "Provides access to the NationStates API",
"keywords": [
"NationStates",
Expand Down
Loading

0 comments on commit 40edf79

Please sign in to comment.