datasift 3.4.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +1 -1
- data/.travis.yml +9 -0
- data/CHANGELOG.md +14 -3
- data/Gemfile +1 -1
- data/VERSION +1 -1
- data/datasift.gemspec +4 -4
- data/examples/account_eg.rb +33 -0
- data/examples/account_identity_eg.rb +10 -8
- data/examples/account_identity_limit_eg.rb +10 -8
- data/examples/account_identity_token_eg.rb +5 -2
- data/examples/auth.rb +28 -29
- data/examples/core_api_eg.rb +1 -1
- data/examples/live_stream_eg.rb +3 -3
- data/examples/pull.rb +23 -20
- data/examples/push_eg.rb +9 -8
- data/examples/pylon_eg.rb +10 -1
- data/lib/account.rb +17 -1
- data/lib/api/api_resource.rb +4 -2
- data/lib/datasift.rb +32 -19
- data/lib/errors.rb +16 -0
- data/lib/odp.rb +6 -2
- data/lib/pylon.rb +23 -0
- data/test/datasift/account/account_api_test.rb +35 -0
- data/test/fixtures/cassettes/account/usage/default.json +1 -0
- data/test/fixtures/cassettes/account/usage/invalid.json +1 -0
- data/test/fixtures/cassettes/account/usage/valid_params.json +1 -0
- data/test/fixtures/cassettes/core/after_historic_dpu.json +1 -1
- data/test/fixtures/cassettes/core/balance_get.json +1 -1
- data/test/fixtures/cassettes/core/before_dpu.json +1 -1
- data/test/fixtures/cassettes/core/before_historic_dpu.json +1 -1
- data/test/fixtures/cassettes/core/compile_success.json +1 -1
- data/test/fixtures/cassettes/core/dpu_get_cost.json +1 -1
- data/test/fixtures/cassettes/core/dpu_throw_badrequest.json +1 -1
- data/test/fixtures/cassettes/core/historic_dpu.json +1 -1
- data/test/fixtures/cassettes/core/usage_success.json +1 -1
- data/test/fixtures/cassettes/core/validate_invalid_hash.json +1 -1
- data/test/fixtures/cassettes/core/validate_success_bool.json +1 -1
- data/test/fixtures/cassettes/core/validate_success_hash.json +1 -1
- data/test/fixtures/cassettes/odp/batch/after_upload.json +1 -1
- data/test/fixtures/cassettes/odp/batch/before_upload.json +1 -1
- data/test/fixtures/cassettes/odp/batch/upload_failure_no_source.json +1 -1
- data/test/fixtures/cassettes/odp/batch/upload_success.json +1 -1
- data/test/fixtures/cassettes/preview/before_preview_create.json +1 -1
- data/test/fixtures/cassettes/preview/before_preview_get.json +1 -1
- data/test/fixtures/cassettes/preview/preview_create_success.json +1 -1
- data/test/fixtures/cassettes/preview/preview_get_success.json +1 -1
- data/test/fixtures/cassettes/push/after_push_create.json +1 -1
- data/test/fixtures/cassettes/push/after_push_get.json +1 -1
- data/test/fixtures/cassettes/push/after_push_log.json +1 -1
- data/test/fixtures/cassettes/push/after_push_pause.json +1 -1
- data/test/fixtures/cassettes/push/after_push_resume.json +1 -1
- data/test/fixtures/cassettes/push/after_push_stop.json +1 -1
- data/test/fixtures/cassettes/push/after_push_update.json +1 -1
- data/test/fixtures/cassettes/push/before_push_create.json +1 -1
- data/test/fixtures/cassettes/push/before_push_delete.json +1 -1
- data/test/fixtures/cassettes/push/before_push_get.json +1 -1
- data/test/fixtures/cassettes/push/before_push_log.json +1 -1
- data/test/fixtures/cassettes/push/before_push_pause.json +1 -1
- data/test/fixtures/cassettes/push/before_push_resume.json +1 -1
- data/test/fixtures/cassettes/push/before_push_stop.json +1 -1
- data/test/fixtures/cassettes/push/before_push_update.json +1 -1
- data/test/fixtures/cassettes/push/push_create.json +1 -1
- data/test/fixtures/cassettes/push/push_delete.json +1 -1
- data/test/fixtures/cassettes/push/push_get_by_id.json +1 -1
- data/test/fixtures/cassettes/push/push_log_with_id.json +1 -1
- data/test/fixtures/cassettes/push/push_pause.json +1 -1
- data/test/fixtures/cassettes/push/push_resume.json +1 -1
- data/test/fixtures/cassettes/push/push_stop.json +1 -1
- data/test/fixtures/cassettes/push/push_update.json +1 -1
- data/test/fixtures/cassettes/push/push_validate.json +1 -1
- metadata +15 -4
@@ -1 +1 @@
|
|
1
|
-
{"http_interactions":[{"request":{"method":"post","uri":"https://api.datasift.com/v1.
|
1
|
+
{"http_interactions":[{"request":{"method":"post","uri":"https://api.datasift.com/v1.2/compile","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.2 Ruby/v3.5.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["48"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 12 Nov 2015 11:04:51 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.2"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["9302"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1447329263"],"X-Ratelimit-Reset-Ttl":["2972"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"Access-Control-Allow-Methods":["GET,POST,PUT,DELETE"],"X-Served-By":["ded2584"],"X-Frame-Options":["SAMEORIGIN"]},"body":{"encoding":"UTF-8","base64_string":"eyJoYXNoIjoiMTQ1ZWEyNGE0ZDgzYTE0ZWNiOTA3N2I4MzFmMTQ4MDkiLCJj\ncmVhdGVkX2F0IjoiMjAxNS0xMS0xMiAxMTowNDo1MSIsImRwdSI6IjAuMSJ9\n"},"http_version":null},"recorded_at":"Thu, 12 Nov 2015 11:04:51 GMT"},{"request":{"method":"post","uri":"https://api.datasift.com/v1.2/push/create","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.2 Ruby/v3.5.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["340"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 12 Nov 2015 11:04:52 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.2"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["9297"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1447329263"],"X-Ratelimit-Reset-Ttl":["2971"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"Access-Control-Allow-Methods":["GET,POST,PUT,DELETE"],"X-Served-By":["ded2587"],"X-Frame-Options":["SAMEORIGIN"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6IjkyY2YxMjkxYzQ2N2Q2ZjhmMTQ2MDIzZTBmNDNjZTFhIiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0NDczMjYyOTIsInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0In0sInN0YXR1cyI6ImFjdGl2ZSIsImxh\nc3RfcmVxdWVzdCI6bnVsbCwibGFzdF9zdWNjZXNzIjpudWxsLCJyZW1haW5p\nbmdfYnl0ZXMiOm51bGwsImxvc3RfZGF0YSI6ZmFsc2UsInN0YXJ0IjoxNDQ3\nMzI2MjkyLCJlbmQiOjB9\n"},"http_version":null},"recorded_at":"Thu, 12 Nov 2015 11:04:52 GMT"}],"recorded_with":"VCR 2.9.3"}
|
@@ -1 +1 @@
|
|
1
|
-
{"http_interactions":[{"request":{"method":"post","uri":"https://api.datasift.com/v1.
|
1
|
+
{"http_interactions":[{"request":{"method":"post","uri":"https://api.datasift.com/v1.2/compile","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.2 Ruby/v3.5.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["48"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 12 Nov 2015 11:04:42 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.2"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["9387"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1447329263"],"X-Ratelimit-Reset-Ttl":["2981"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"Access-Control-Allow-Methods":["GET,POST,PUT,DELETE"],"X-Served-By":["ded2584"],"X-Frame-Options":["SAMEORIGIN"]},"body":{"encoding":"UTF-8","base64_string":"eyJoYXNoIjoiMTQ1ZWEyNGE0ZDgzYTE0ZWNiOTA3N2I4MzFmMTQ4MDkiLCJj\ncmVhdGVkX2F0IjoiMjAxNS0xMS0xMiAxMTowNDo0MiIsImRwdSI6IjAuMSJ9\n"},"http_version":null},"recorded_at":"Thu, 12 Nov 2015 11:04:42 GMT"},{"request":{"method":"post","uri":"https://api.datasift.com/v1.2/push/create","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.2 Ruby/v3.5.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["340"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 12 Nov 2015 11:04:43 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.2"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["9382"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1447329263"],"X-Ratelimit-Reset-Ttl":["2981"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"Access-Control-Allow-Methods":["GET,POST,PUT,DELETE"],"X-Served-By":["ded2584"],"X-Frame-Options":["SAMEORIGIN"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6IjE0MDM0MThkOWY3NWNkNDYxMGZiNjExNWU5MjcyNzUwIiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0NDczMjYyODMsInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0In0sInN0YXR1cyI6ImFjdGl2ZSIsImxh\nc3RfcmVxdWVzdCI6bnVsbCwibGFzdF9zdWNjZXNzIjpudWxsLCJyZW1haW5p\nbmdfYnl0ZXMiOm51bGwsImxvc3RfZGF0YSI6ZmFsc2UsInN0YXJ0IjoxNDQ3\nMzI2MjgzLCJlbmQiOjB9\n"},"http_version":null},"recorded_at":"Thu, 12 Nov 2015 11:04:43 GMT"}],"recorded_with":"VCR 2.9.3"}
|
@@ -1 +1 @@
|
|
1
|
-
{"http_interactions":[{"request":{"method":"post","uri":"https://api.datasift.com/v1.
|
1
|
+
{"http_interactions":[{"request":{"method":"post","uri":"https://api.datasift.com/v1.2/push/create","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.2 Ruby/v3.5.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["340"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 12 Nov 2015 11:04:44 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.2"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["9366"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1447329263"],"X-Ratelimit-Reset-Ttl":["2979"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"Access-Control-Allow-Methods":["GET,POST,PUT,DELETE"],"X-Served-By":["ded2584"],"X-Frame-Options":["SAMEORIGIN"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6IjRkYWRkMGFhMTI0NGE1NGY4MDgxYjJlMTg5MjU0YTYyIiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0NDczMjYyODQsInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0In0sInN0YXR1cyI6ImFjdGl2ZSIsImxh\nc3RfcmVxdWVzdCI6bnVsbCwibGFzdF9zdWNjZXNzIjpudWxsLCJyZW1haW5p\nbmdfYnl0ZXMiOm51bGwsImxvc3RfZGF0YSI6ZmFsc2UsInN0YXJ0IjoxNDQ3\nMzI2Mjg0LCJlbmQiOjB9\n"},"http_version":null},"recorded_at":"Thu, 12 Nov 2015 11:04:45 GMT"}],"recorded_with":"VCR 2.9.3"}
|
@@ -1 +1 @@
|
|
1
|
-
{"http_interactions":[{"request":{"method":"delete","uri":"https://api.datasift.com/v1.
|
1
|
+
{"http_interactions":[{"request":{"method":"delete","uri":"https://api.datasift.com/v1.2/push/delete?id=40621ca0a83b7bc1b70f97a9bf812dee","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"Accept":["*/*"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.2 Ruby/v3.5.0"],"Authorization":["<USERNAME:API_KEY>"]}},"response":{"status":{"code":204,"message":"No Content"},"headers":{"Server":["nginx"],"Date":["Thu, 12 Nov 2015 11:04:49 GMT"],"Content-Type":["text/html"],"Connection":["close"],"X-Api-Version":["1.2"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["9332"],"X-Ratelimit-Cost":["1"],"X-Ratelimit-Reset":["1447329263"],"X-Ratelimit-Reset-Ttl":["2974"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"Access-Control-Allow-Methods":["GET,POST,PUT,DELETE"],"X-Served-By":["ded2584"],"X-Frame-Options":["SAMEORIGIN"]},"body":{"encoding":"UTF-8","base64_string":""},"http_version":null},"recorded_at":"Thu, 12 Nov 2015 11:04:49 GMT"}],"recorded_with":"VCR 2.9.3"}
|
@@ -1 +1 @@
|
|
1
|
-
{"http_interactions":[{"request":{"method":"get","uri":"https://api.datasift.com/v1.
|
1
|
+
{"http_interactions":[{"request":{"method":"get","uri":"https://api.datasift.com/v1.2/push/get?id=a2eabbaae6f8a8f116aa08f1f74b58ea","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"Accept":["*/*"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.2 Ruby/v3.5.0"],"Authorization":["<USERNAME:API_KEY>"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 12 Nov 2015 11:04:51 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.2"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["9308"],"X-Ratelimit-Cost":["1"],"X-Ratelimit-Reset":["1447329263"],"X-Ratelimit-Reset-Ttl":["2972"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"Access-Control-Allow-Methods":["GET,POST,PUT,DELETE"],"X-Served-By":["ded2587"],"X-Frame-Options":["SAMEORIGIN"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6ImEyZWFiYmFhZTZmOGE4ZjExNmFhMDhmMWY3NGI1OGVhIiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0NDczMjYyOTEsInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0In0sInN0YXR1cyI6ImFjdGl2ZSIsImxh\nc3RfcmVxdWVzdCI6bnVsbCwibGFzdF9zdWNjZXNzIjpudWxsLCJyZW1haW5p\nbmdfYnl0ZXMiOjAsImludGVyYWN0aW9uX2NvdW50IjowLCJsb3N0X2RhdGEi\nOmZhbHNlLCJzdGFydCI6MTQ0NzMyNjI5MSwiZW5kIjpudWxsfQ==\n"},"http_version":null},"recorded_at":"Thu, 12 Nov 2015 11:04:51 GMT"}],"recorded_with":"VCR 2.9.3"}
|
@@ -1 +1 @@
|
|
1
|
-
{"http_interactions":[{"request":{"method":"get","uri":"https://api.datasift.com/v1.
|
1
|
+
{"http_interactions":[{"request":{"method":"get","uri":"https://api.datasift.com/v1.2/push/log?id=06e34d5fb2159de8571f409de50e2978&order_by=request_time&order_dir=desc&page=1&per_page=20","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"Accept":["*/*"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.2 Ruby/v3.5.0"],"Authorization":["<USERNAME:API_KEY>"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 12 Nov 2015 11:04:48 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.2"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["9344"],"X-Ratelimit-Cost":["1"],"X-Ratelimit-Reset":["1447329263"],"X-Ratelimit-Reset-Ttl":["2975"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"Access-Control-Allow-Methods":["GET,POST,PUT,DELETE"],"X-Served-By":["ded2587"],"X-Frame-Options":["SAMEORIGIN"]},"body":{"encoding":"UTF-8","base64_string":"eyJzdWNjZXNzIjp0cnVlLCJjb3VudCI6MCwibG9nX2VudHJpZXMiOltdfQ==\n"},"http_version":null},"recorded_at":"Thu, 12 Nov 2015 11:04:48 GMT"}],"recorded_with":"VCR 2.9.3"}
|
@@ -1 +1 @@
|
|
1
|
-
{"http_interactions":[{"request":{"method":"put","uri":"https://api.datasift.com/v1.
|
1
|
+
{"http_interactions":[{"request":{"method":"put","uri":"https://api.datasift.com/v1.2/push/pause","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.2 Ruby/v3.5.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["41"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 12 Nov 2015 11:04:53 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.2"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["9284"],"X-Ratelimit-Cost":["1"],"X-Ratelimit-Reset":["1447329263"],"X-Ratelimit-Reset-Ttl":["2970"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"Access-Control-Allow-Methods":["GET,POST,PUT,DELETE"],"X-Served-By":["ded2587"],"X-Frame-Options":["SAMEORIGIN"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6IjQzMzQzMzI4MjE4MGFkODYxNjhlODdmYzQ5OWMwNmQ0Iiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0NDczMjYyOTMsInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0In0sInN0YXR1cyI6InBhdXNlZCIsImxh\nc3RfcmVxdWVzdCI6bnVsbCwibGFzdF9zdWNjZXNzIjpudWxsLCJyZW1haW5p\nbmdfYnl0ZXMiOm51bGwsImxvc3RfZGF0YSI6ZmFsc2UsInN0YXJ0IjoxNDQ3\nMzI2MjkzLCJlbmQiOm51bGx9\n"},"http_version":null},"recorded_at":"Thu, 12 Nov 2015 11:04:53 GMT"}],"recorded_with":"VCR 2.9.3"}
|
@@ -1 +1 @@
|
|
1
|
-
{"http_interactions":[{"request":{"method":"put","uri":"https://api.datasift.com/v1.
|
1
|
+
{"http_interactions":[{"request":{"method":"put","uri":"https://api.datasift.com/v1.2/push/resume","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.2 Ruby/v3.5.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["41"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 12 Nov 2015 11:04:50 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.2"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["9320"],"X-Ratelimit-Cost":["1"],"X-Ratelimit-Reset":["1447329263"],"X-Ratelimit-Reset-Ttl":["2973"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"Access-Control-Allow-Methods":["GET,POST,PUT,DELETE"],"X-Served-By":["ded2587"],"X-Frame-Options":["SAMEORIGIN"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6Ijg3YzNlMjExYmM1MTA2ZmY0MzBmZmNkM2ZiYzhhMmI3Iiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0NDczMjYyOTAsInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0In0sInN0YXR1cyI6ImFjdGl2ZSIsImxh\nc3RfcmVxdWVzdCI6bnVsbCwibGFzdF9zdWNjZXNzIjpudWxsLCJyZW1haW5p\nbmdfYnl0ZXMiOm51bGwsImxvc3RfZGF0YSI6ZmFsc2UsInN0YXJ0IjoxNDQ3\nMzI2MjkwLCJlbmQiOm51bGx9\n"},"http_version":null},"recorded_at":"Thu, 12 Nov 2015 11:04:50 GMT"}],"recorded_with":"VCR 2.9.3"}
|
@@ -1 +1 @@
|
|
1
|
-
{"http_interactions":[{"request":{"method":"put","uri":"https://api.datasift.com/v1.
|
1
|
+
{"http_interactions":[{"request":{"method":"put","uri":"https://api.datasift.com/v1.2/push/stop","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.2 Ruby/v3.5.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["41"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 12 Nov 2015 11:04:52 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.2"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["9296"],"X-Ratelimit-Cost":["1"],"X-Ratelimit-Reset":["1447329263"],"X-Ratelimit-Reset-Ttl":["2971"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"Access-Control-Allow-Methods":["GET,POST,PUT,DELETE"],"X-Served-By":["ded2587"],"X-Frame-Options":["SAMEORIGIN"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6IjkyY2YxMjkxYzQ2N2Q2ZjhmMTQ2MDIzZTBmNDNjZTFhIiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0NDczMjYyOTIsInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0In0sInN0YXR1cyI6ImZpbmlzaGluZyIs\nImxhc3RfcmVxdWVzdCI6bnVsbCwibGFzdF9zdWNjZXNzIjpudWxsLCJyZW1h\naW5pbmdfYnl0ZXMiOm51bGwsImxvc3RfZGF0YSI6ZmFsc2UsInN0YXJ0Ijox\nNDQ3MzI2MjkyLCJlbmQiOjE0NDczMjYyOTJ9\n"},"http_version":null},"recorded_at":"Thu, 12 Nov 2015 11:04:52 GMT"}],"recorded_with":"VCR 2.9.3"}
|
@@ -1 +1 @@
|
|
1
|
-
{"http_interactions":[{"request":{"method":"post","uri":"https://api.datasift.com/v1.
|
1
|
+
{"http_interactions":[{"request":{"method":"post","uri":"https://api.datasift.com/v1.2/push/update","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.2 Ruby/v3.5.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["320"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 12 Nov 2015 11:04:44 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.2"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["9377"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1447329263"],"X-Ratelimit-Reset-Ttl":["2980"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"Access-Control-Allow-Methods":["GET,POST,PUT,DELETE"],"X-Served-By":["ded2584"],"X-Frame-Options":["SAMEORIGIN"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6IjE0MDM0MThkOWY3NWNkNDYxMGZiNjExNWU5MjcyNzUwIiwib3V0\ncHV0X3R5cGUiOiJzMyIsIm5hbWUiOiJSdWJ5IFB1c2ggRXhhbXBsZSIsImNy\nZWF0ZWRfYXQiOjE0NDczMjYyODMsInVzZXJfaWQiOjMwNDksImhhc2giOiIx\nNDVlYTI0YTRkODNhMTRlY2I5MDc3YjgzMWYxNDgwOSIsImhhc2hfdHlwZSI6\nInN0cmVhbSIsIm91dHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNp\nZnRqYXNvbiIsImRpcmVjdG9yeSI6InJ1YnkiLCJhY2wiOiJwcml2YXRlIiwi\nZGVsaXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJm\naWxlX3ByZWZpeCI6IkRhdGFTaWZ0Iiwib3V0cHV0X3R5cGUiOiJzMyIsIm91\ndHB1dF9wYXJhbXMiOnsiYnVja2V0IjoiY29tZGF0YXNpZnRqYXNvbiIsImRp\ncmVjdG9yeSI6Im5ld19kaXJlY3RvcnkiLCJhY2wiOiJwcml2YXRlIiwiZGVs\naXZlcnlfZnJlcXVlbmN5IjowLCJtYXhfc2l6ZSI6MTA0ODU3NjAwLCJmaWxl\nX3ByZWZpeCI6IkRhdGFTaWZ0IiwiYXV0aCI6eyJhY2Nlc3Nfa2V5IjoiQUtJ\nQUpTVDdZRjJFTlpYSUxLQlEiLCJzZWNyZXRfa2V5Ijoic3VuQmFoZ1YxOW5W\nQmtUT0JqYzd4RUZ5SkhJcG5zWW1icG15aWtISSJ9fSwiaWQiOiIxNDAzNDE4\nZDlmNzVjZDQ2MTBmYjYxMTVlOTI3Mjc1MCJ9LCJzdGF0dXMiOiJhY3RpdmUi\nLCJsYXN0X3JlcXVlc3QiOm51bGwsImxhc3Rfc3VjY2VzcyI6bnVsbCwicmVt\nYWluaW5nX2J5dGVzIjowLCJsb3N0X2RhdGEiOmZhbHNlLCJzdGFydCI6MTQ0\nNzMyNjI4MywiZW5kIjpudWxsfQ==\n"},"http_version":null},"recorded_at":"Thu, 12 Nov 2015 11:04:44 GMT"}],"recorded_with":"VCR 2.9.3"}
|
@@ -1 +1 @@
|
|
1
|
-
{"http_interactions":[{"request":{"method":"post","uri":"https://api.datasift.com/v1.
|
1
|
+
{"http_interactions":[{"request":{"method":"post","uri":"https://api.datasift.com/v1.2/push/validate","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.2 Ruby/v3.5.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["271"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 12 Nov 2015 11:04:46 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.2"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["9360"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1447329263"],"X-Ratelimit-Reset-Ttl":["2978"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"Access-Control-Allow-Methods":["GET,POST,PUT,DELETE"],"X-Served-By":["ded2587"],"X-Frame-Options":["SAMEORIGIN"]},"body":{"encoding":"UTF-8","base64_string":"eyJzdWNjZXNzIjp0cnVlLCJtZXNzYWdlIjoiVmFsaWRhdGVkIHN1Y2Nlc3Nm\ndWxseSJ9\n"},"http_version":null},"recorded_at":"Thu, 12 Nov 2015 11:04:46 GMT"},{"request":{"method":"post","uri":"https://api.datasift.com/v1.2/push/validate","body":{"encoding":"UTF-8","base64_string":"PEJBU0U2NF9TVFJJTkc+\n"},"headers":{"Accept":["*/*"],"Accept-Encoding":["gzip, deflate"],"User-Agent":["DataSift/v1.2 Ruby/v3.5.0"],"Authorization":["<USERNAME:API_KEY>"],"Content-Type":["application/json"],"Content-Length":["271"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["nginx"],"Date":["Thu, 12 Nov 2015 11:04:46 GMT"],"Content-Type":["application/json"],"Transfer-Encoding":["chunked"],"Connection":["close"],"X-Api-Version":["1.2"],"P3p":["CP=\"CAO PSA\""],"X-Ratelimit-Limit":["10000"],"X-Ratelimit-Remaining":["9355"],"X-Ratelimit-Cost":["5"],"X-Ratelimit-Reset":["1447329263"],"X-Ratelimit-Reset-Ttl":["2977"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Headers":["Authorization,Content-Type"],"Access-Control-Allow-Methods":["GET,POST,PUT,DELETE"],"X-Served-By":["ded2584"],"X-Frame-Options":["SAMEORIGIN"]},"body":{"encoding":"UTF-8","base64_string":"eyJzdWNjZXNzIjp0cnVlLCJtZXNzYWdlIjoiVmFsaWRhdGVkIHN1Y2Nlc3Nm\ndWxseSJ9\n"},"http_version":null},"recorded_at":"Thu, 12 Nov 2015 11:04:46 GMT"}],"recorded_with":"VCR 2.9.3"}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datasift
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DataSift
|
@@ -10,22 +10,28 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-11-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest-client
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - "
|
19
|
+
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: '1.8'
|
22
|
+
- - "<"
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '3.0'
|
22
25
|
type: :runtime
|
23
26
|
prerelease: false
|
24
27
|
version_requirements: !ruby/object:Gem::Requirement
|
25
28
|
requirements:
|
26
|
-
- - "
|
29
|
+
- - ">="
|
27
30
|
- !ruby/object:Gem::Version
|
28
31
|
version: '1.8'
|
32
|
+
- - "<"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '3.0'
|
29
35
|
- !ruby/object:Gem::Dependency
|
30
36
|
name: multi_json
|
31
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -89,6 +95,7 @@ files:
|
|
89
95
|
- Rakefile
|
90
96
|
- VERSION
|
91
97
|
- datasift.gemspec
|
98
|
+
- examples/account_eg.rb
|
92
99
|
- examples/account_identity_eg.rb
|
93
100
|
- examples/account_identity_limit_eg.rb
|
94
101
|
- examples/account_identity_token_eg.rb
|
@@ -121,10 +128,14 @@ files:
|
|
121
128
|
- lib/odp.rb
|
122
129
|
- lib/push.rb
|
123
130
|
- lib/pylon.rb
|
131
|
+
- test/datasift/account/account_api_test.rb
|
124
132
|
- test/datasift/core_api_test.rb
|
125
133
|
- test/datasift/historics_preview_api_test.rb
|
126
134
|
- test/datasift/odp/batch_upload_test.rb
|
127
135
|
- test/datasift/push_api_test.rb
|
136
|
+
- test/fixtures/cassettes/account/usage/default.json
|
137
|
+
- test/fixtures/cassettes/account/usage/invalid.json
|
138
|
+
- test/fixtures/cassettes/account/usage/valid_params.json
|
128
139
|
- test/fixtures/cassettes/core/after_historic_dpu.json
|
129
140
|
- test/fixtures/cassettes/core/balance_get.json
|
130
141
|
- test/fixtures/cassettes/core/before_dpu.json
|