Skip to content

A Singer.io tap for extracting data from the Xero API.

License

advanced-learning/tap-xero

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tap-xero

This is a Singer tap that produces JSON-formatted data following the Singer spec.

This tap:

Limitations

Authentication

This tap requires a client id, client secret, tenant id, and refresh token in order to authenticate (and thus receive an access token).

See the Xero documentation for more info.

Refresh token

The tap is able to use the refresh token to refresh the access token. Doing so also generates a new refresh token, which the tap is able to write back to you.

There are two ways to pass in a refresh token, and two ways to have an updated refresh token written back to you.

To pass in a refresh token, either use the refresh_token arg or the refresh_token_path arg.
If refresh_token is not set, the refresh token will be read as the entire contents of the file at refresh_token_path.
If refresh_token_path is set, a new refresh token will override the entire contents of the file as well as being written to the config JSON (which is the default behavior if refresh_token_path is not set).

This is important for the use of this tap via Meltano. Since Meltano generates an ephemeral config JSON, writing the new refresh token to it is not very helpful.


Copyright © 2017 Stitch

About

A Singer.io tap for extracting data from the Xero API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%