Giter VIP home page Giter VIP logo

adhawk-android's Introduction

Sunlight Labs Documentation

This is for developers

The palest ink is better than the best memory

- Chinese Proverb

Welcome to the central hub for Sunlight Labs. This repository contains documentation and links to everything relevant to Sunlight and Sunlight Labs. Please feel free to contribute if you find something is missing or out of date. This project was inspired and is a continuation of a former documentation project Developers, Developers, Developers from which the clever animated gif above comes.

General

//TODO

  • New to Sunlight?
  • How-To Guides
  • Services
  • FAQ
  • Project Overviews
  • Contact Info

Links & Resources

adhawk-android's People

Contributors

boblannon avatar konklone avatar ludflu avatar pselle avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

rcgtdev

adhawk-android's Issues

JSON request

the fingerprinting software will produce a zlib-compressed version of a string of audio samples. that's our 'fingerprint'. we'll also want to include geo-coordinates 'lat' and 'lon.' the following is an example of the JSON object we want to send:

{ 
    "fingerprint":"eJwty7kNADAMw8BVNILl-Mv-iwWCU11D0g_CQA-USIwoXNEg5YBH3o3-0sil7AHIrAyw",
    "lat":"-47.9",
    "lon":"-123.43"
}

Here's an example of a curl request (which will work as soon as I load in test data and Tim points the adhawk.sunlightfoundation.com domain to my ec2).

curl --dump-header - -H "Content-Type: application/json" -X POST --data '{"fingerprint": "eJwty7kNADAMw8BVNILl-Mv-iwWCU11D0g_CQA-USIwoXNEg5YBH3o3-0sil7AHIrAyw", "lat": "-47.9", "lon": "-123.43"}' http://adhawk.sunlightfoundation.com/api/ad/

JSON response

here's the JSON response (with headers) to expect from the server. it'll always be of the form ../ad/. I'm working right now on the view associated with that location.

200 OK
Server:  nginx/1.2.1
Date:  Wed, 11 Jul 2012 19:49:13 GMT
Content-Type:  application/json
Transfer-Encoding:  chunked
Connection:  keep-alive
{"ad_profile_url": "http://adhawk.sunlight.com/ad/1"}

(fyi, since I haven't finished the ad profile view yet, right now you'll get a picture of eric wareheim)

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.