Git Product home page Git Product logo

api_sample_libraries's People

Contributors

jacob-friesen avatar leonardb avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

api_sample_libraries's Issues

Erlang

We need an Erlang example.

Option to Delete FTP Servers Archive File After Download

Story Points 15

All examples should have an option to delete the results archive file after download.

Default for option is to not delete the results archive as the SiftLogic platform will automatically clean up archive files over 30 days old

.Net

Story Points: 30

Implemented in C# as that is the most common. It has been awhile since I have done the implementation so I will need to brush up on C# coding.

PHP

Story Points: 15

We need a PHP implementation.

Package Manager Integration

Each language should have a version for easy install on it's environments most popular package manager. For Node.js this would be NPM which could be installed like:

npm install siftlogic-bulk-ftp-api --save-dev

And no more work would be necessary.

Node BLOAW!

Story Points: 20

We need a node implementation.

Support new HTTP based Bulk API

  1. Requires a "Live" API Key to work
  2. use header "x-authorization: ApiKey" in all calls
  3. Base Path: http://server:port/api/live/bulk

_Operations:_

GET:
http://server:port/api/live/bulk/
Lists all active, pending and completed jobs (which have not yet been deleted)

POST:
http://server:port/api/live/bulk/
This attempts to create a new job
Fields

  • export_type "multi/single"
  • notify_email "email address to notify when job complete"
  • file: @;type=text/csv"
    Example responses:
Error: {"status":"error","remaining_credits":1,"error":"out_of_credits","msg":"Account out of credits, please contact Sales"}
Success: {"status":"success","job":"sample_subscriber_data_csv","msg":"Successful upload of sample_subscriber_data.csv for processing","status_url":"http://localhost:82/api/live/bulk/sample_subscriber_data_csv"}

GET:
http://server:port/api/live/bulk/JOB
Gets the status of the JOB
Sample responses

{"job":"sample_subscriber_data_csv","added":"2014-06-20 18:09:46 UTC","started":"2014-06-20 18:09:47 UTC","status":"active"}
{"job":"sample_subscriber_data_csv","added":"2014-06-20 18:09:46 UTC","started":"2014-06-20 18:09:47 UTC","status":"active"}
{"job":"sample_subscriber_data_csv","added":"2014-06-20 18:09:46 UTC","started":"2014-06-20 18:09:47 UTC","status":"active"}
{"download_url":"http://localhost:82/api/live/bulk/sample_subscriber_data_csv/download","job":"sample_subscriber_data_csv","added":"2014-06-20 18:09:46 UTC","started":"2014-06-20 18:09:47 UTC","ended":"2014-06-20 18:10:29 UTC","status":"completed"}

DELETE:
http://server:port/api/live/bulk/JOB
Deletes all files associated with the JOB from the server

GET:
http://server:port/api/live/bulk/JOB/download
This initiates download of the results archive

Java

We need a Java implementation.

Python

We need a Python implementation.

Ruby

Story Points: 15

We need a Ruby implementation.

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.