In Cyfe.com
- Add Widget -> Custom -> Push API
- Click Configure Widget
- Copy the API Endpoint
For example, if the API Endpoint is https://app.cyfe.com/api/push/54cbb5c62f21f359341803978798
Run in command line:
./cyfe-push-csv.sh example.tmpl example.csv example.json 54cbb5c62f21f359341803978798
{"status":"ok","message":"Data pushed"}
On error:
./cyfe-push-csv.sh example.tmpl example.csv example.json 54cbb5c62f21f359341803978798
{"status":"error","message":"No data"}
On Windows, you will need to download the Windows port of gawk, sed and curl. UnxUtils is preferred as there is no need for extra DLLs.
- gawk 3.1.6 (direct link)
- sed 4.2.1 (direct link)
- libintl3.dll 0.14.4 (direct link)
- libiconv2.dll 1.9.2 (direct link)
- regex2.dll 2.7 (direct link)
- OS X Mavericks
- Windows 7 64 bit
csv2json.awk program is modified from perkee's work
@angusdev
© 2015 ellab.org