Skip to content

A Singer tap for extracting data from the Urban Airship API

License

Notifications You must be signed in to change notification settings

singer-io/tap-urban-airship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tap-urban-airship

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

This tap:

  • Pulls raw data from Urban Airship's REST API
  • Extracts the following resources from Urban Airship:
  • Outputs the schema for each resource
  • Incrementally pulls data based on the input state

Quick start

  1. Install

    > pip install tap-urban-airship
  2. Get your Urban Airship keys

    Sign into your Urban Airship account. In the dashboard, open the app you want to connect to Stitch. If the Engage tab doesn’t open, click Engage at the top to open it. Click the gear icon located near Reports, then select APIs & Integrations. The APIs & Integrations page will display. Use your Urban Airship App Key and App Secret in the following step.

  3. Create the config file

    Create a JSON file called config.json containing the key and secret you just found.

    {"app_key": "your-app-key",
     "app_secret": "your-app-secret"}
  4. [Optional] Create the initial state file

    You can provide JSON file that contains a date for the API endpoints to force the application to only fetch data newer than those dates. If you omit the file it will fetch all Urban Airship data

    {"channels": "2017-01-17T20:32:05Z",
    "lists": "2017-01-17T20:32:05Z",
    "segments": "2017-01-17T20:32:05Z",
    "named_users": "2017-01-17T20:32:05Z"}
  5. Run the application

    tap-urban-airship can be run with:

    tap-urban-airship --config config.json [--state state.json]

Copyright © 2017 Stitch

About

A Singer tap for extracting data from the Urban Airship API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages