Skip to content

nmss/gw2-api-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gw2-api-wrapper

Initialize

var options = {
	key: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'
};
var api = new Api(options);

Retrieve data from the api

View full list of supported endpoint on the wiki : API:Main

var endpoint = 'account/banck';
api.get(endpoint).then(function(data) {
	// do something with the data 
})

Error handling

api.get(endpoint).catch(function(error) {
	// do something with the error 
})
api.get(endpoint).then(function(data) {
	// do something with the data
}, function(error) {
	// do something with the error 
})

About

A wrapper for the Guild Wars 2 API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published