Git Product home page Git Product logo

tap-outbrain's Introduction

tap-outbrain

Author: Connor McArthur ([email protected])

Development

This repository contains two configuration files that need to be copied and filled out before running:

  • config.json.example: copy to config.json in the repo root. Contains:

    • account_id, aka the Marketer ID (unique to each account) in Outbrain. Looks like 00f4b02153ee75f3c9dc4fc128ab041962.
    • username, the Outbrain username used to generate an Amplify API token.
    • password, the Outbrain password to go along with username.
    • access_token, an optional argument. If provided, this will be used as the access token, and a new one won't be generated.
  • persist.json.example: copy to persist.json in the repo root. Contains the configuration for the Stitch persister.

Then, the streamer can be run (with persistence) with:

docker build -f Dockerfile .
docker run <image-id>

Or, for interactive development:

docker build -f Dockerfile .

# this automatically propagates changes into the container
docker -v "$(pwd)":/usr/src/tap-outbrain run <image-id>

Gotchas

  • Outbrain only allows two calls to the /login API per hour. This integration calls that API on every run to generate a new access token. This means that this integration cannot be run more frequently than twice per hour. The access token could be stored in the state file with a timestamp, but at present secure state file storage is not implemented.
  • Campaign pagination is not implemented -- this integration pulls incomplete data if more than 100 campaigns exist.

Copyright © 2017 Stitch

tap-outbrain's People

Contributors

ccapurso avatar cmcarthur avatar mdelaurentis avatar briansloane avatar dmosorast avatar joe-heffer-mpe avatar iterati avatar karstendick avatar

Forkers

thisiseyal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.