Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Collector pulls in data from 3rd party API services and stores it in CloudStore.

Installation

Requirements

Quick Start

Make sure CloudStore is running, then:

git clone https://github.com/airships/collector
./apply_config
make
./rel/collector/bin/collector console

Configuration

Edit config/base to change port, keys, and CloudStore endpoint. Then:

./apply_config
make

Then restart Collector:

./rel/collector/bin/collector stop
./rel/collector/bin/collector console

Config documentation

Usage (curl)

Generate token for /users/bob

curl --request PUT --header "Content-Type: application/json" --data "{\/users/bob"\":\"rw\"}" --verbose http://127.0.0.1:10004/tokens/SECRET

Generate a Facebook access token

TODO: show how

Retrieve and Store Facebok Profile

curl --header "Content-Type: application/json" --header "Accept: application/json" --data "{\"service\":\"singly\", \"provider\":\"facebook\", \"request\": \"/profile\", \"access_token\": \"FACEBOOK_ACCESS_TOKEN\"}" --verbose --request PUT http://127.0.0.1:10005/users/bob/profile?token=SECRET

GET

curl --verbose http://127.0.0.1:10002/users/bob/profile?token=SECRET

About

API data collector.

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages