diff --git a/lib/webflow/client.rb b/lib/webflow/client.rb index 7a35cd9..6ead877 100644 --- a/lib/webflow/client.rb +++ b/lib/webflow/client.rb @@ -48,9 +48,37 @@ def collection(collection_id) get("/collections/#{collection_id}") end + + # https://developers.webflow.com/?javascript#get-all-items-for-a-collection + # returns json object with data to help paginate collection + # + # { + # items: your list of items returned, + # count: number of items returned, + # limit: the limit specified in the request (default: 100), + # offset: the offset specified for pagination (default: 0), + # total: total # of items in the collection + # } + # + # page starts at 1 + def paginate_items(collection_id, per_page: 100, page: 1) + get("/collections/#{collection_id}/items", params: { limit: per_page, offset: per_page * (page - 1) }) + end + + def items(collection_id, limit: 100) - json = get("/collections/#{collection_id}/items", params: {limit: limit}) - json['items'] + fetched_items = [] + num_pages = (limit.to_f / 100.0).ceil + per_page = limit > 100 ? 100 : limit + + num_pages.times do |i| + resp = paginate_items(collection_id, per_page: (limit > 100 ? 100 : limit), page: i+1) + fetched_items += resp['items'] + limit -= resp['count'] + break if limit <= 0 || resp['total'] <= fetched_items.length + end + + fetched_items end def item(collection_id, item_id) diff --git a/test/fixtures/cassettes/test_it_fetches_a_single_item.yml b/test/fixtures/cassettes/test_it_fetches_a_single_item.yml index fdf798e..2671aab 100644 --- a/test/fixtures/cassettes/test_it_fetches_a_single_item.yml +++ b/test/fixtures/cassettes/test_it_fetches_a_single_item.yml @@ -92,4 +92,187 @@ http_interactions: Update DEF","slug":"test-item-name-abc","updated-on":"2017-03-16T19:38:52.217Z","updated-by":"Person_58c996964e6fd9182228b62b","created-on":"2017-03-16T19:38:52.072Z","created-by":"Person_58c996964e6fd9182228b62b","published-on":null,"published-by":null,"_cid":"58c9a554a118f71a388bcc89","_id":"58cae9cc02523c88492bf246"}],"count":1,"limit":100,"offset":0,"total":1}' http_version: recorded_at: Tue, 11 Apr 2017 14:44:46 GMT -recorded_with: VCR 3.0.3 +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 18:05:37 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '60' + X-Response-Time: + - 11.523ms + X-Wf-Rid: + - 72e32c13-db77-4c07-a818-ecc10e254680 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 18:05:37 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 400 + message: Bad Request + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:50 GMT + Etag: + - W/"8d-5548336d" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '0' + X-Response-Time: + - 7.035ms + X-Wf-Rid: + - b04343f4-577c-466d-a2b6-e821c7d94e7b + Content-Length: + - '141' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"msg":"Rate limit hit","code":400,"name":"RateLimit","path":"/collections/58c9a554a118f71a388bcc89/items","err":"RateLimit: + Rate limit hit"}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:50 GMT +- request: + method: post + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items + body: + encoding: UTF-8 + string: '{"fields":{"_archived":false,"_draft":false,"name":"Test Item Name + ABC"}}' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 22:09:12 GMT + Etag: + - W/"173-e2907c4d" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '60' + X-Response-Time: + - 28.155ms + X-Wf-Rid: + - ba11516a-63da-4285-a85e-0d3afacf5234 + Content-Length: + - '371' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"_archived":false,"_draft":false,"name":"Test Item Name ABC","slug":"test-item-name-abc","updated-on":"2019-01-15T22:09:12.781Z","updated-by":"Person_58c996964e6fd9182228b62b","created-on":"2019-01-15T22:09:12.781Z","created-by":"Person_58c996964e6fd9182228b62b","published-on":null,"published-by":null,"_cid":"58c9a554a118f71a388bcc89","_id":"5c3e5a081effa730403e741d"}' + http_version: + recorded_at: Tue, 15 Jan 2019 22:09:12 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items/5c3e5a081effa730403e741d + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 22:09:12 GMT + Etag: + - W/"1aa-719f12ed" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '59' + X-Response-Time: + - 10.585ms + X-Wf-Rid: + - 26673f5d-5204-4a5d-8f40-1e38f0c35169 + Content-Length: + - '426' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[{"_archived":false,"_draft":false,"name":"Test Item Name + ABC","slug":"test-item-name-abc","updated-on":"2019-01-15T22:09:12.781Z","updated-by":"Person_58c996964e6fd9182228b62b","created-on":"2019-01-15T22:09:12.781Z","created-by":"Person_58c996964e6fd9182228b62b","published-on":null,"published-by":null,"_cid":"58c9a554a118f71a388bcc89","_id":"5c3e5a081effa730403e741d"}],"count":1,"limit":100,"offset":0,"total":1}' + http_version: + recorded_at: Tue, 15 Jan 2019 22:09:12 GMT +recorded_with: VCR 4.0.0 diff --git a/test/fixtures/cassettes/test_it_lists_and_deletes_items.yml b/test/fixtures/cassettes/test_it_lists_and_deletes_items.yml index 5592747..9ce31b1 100644 --- a/test/fixtures/cassettes/test_it_lists_and_deletes_items.yml +++ b/test/fixtures/cassettes/test_it_lists_and_deletes_items.yml @@ -45,4 +45,2795 @@ http_interactions: string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' http_version: recorded_at: Thu, 16 Mar 2017 19:38:51 GMT -recorded_with: VCR 3.0.3 +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 18:05:37 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '59' + X-Response-Time: + - 12.684ms + X-Wf-Rid: + - 3943360f-b77b-4cc4-bd83-ad51f168e08e + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 18:05:37 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:44 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '60' + X-Response-Time: + - 19.933ms + X-Wf-Rid: + - 32112698-5ec1-4b41-859e-dc2712dc0356 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:44 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:44 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '59' + X-Response-Time: + - 15.407ms + X-Wf-Rid: + - 3bbd70a3-13c6-4f3c-8e59-f7193334efcb + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:44 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:44 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '58' + X-Response-Time: + - 13.692ms + X-Wf-Rid: + - 9446243e-1114-48d2-bb05-8ad582cc4553 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:44 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:44 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '57' + X-Response-Time: + - 16.343ms + X-Wf-Rid: + - 2af185b3-bf43-417e-ba79-b8170970098e + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:44 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:44 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '56' + X-Response-Time: + - 12.820ms + X-Wf-Rid: + - 95c7fb9d-b0fc-49e2-9be8-63a5e39b801c + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:44 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:44 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '55' + X-Response-Time: + - 12.570ms + X-Wf-Rid: + - e99547fd-c119-40fd-bc81-0982dac4474c + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:44 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:44 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '54' + X-Response-Time: + - 26.125ms + X-Wf-Rid: + - f29e7085-79db-474d-9fa4-6938b83b77cc + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:44 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:44 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '53' + X-Response-Time: + - 14.269ms + X-Wf-Rid: + - 9ff685a1-066d-4eff-9ac5-1c65e538cc4e + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:44 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:45 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '52' + X-Response-Time: + - 9.949ms + X-Wf-Rid: + - ae01425b-3ebe-440c-8b8d-2d3cdff5fa9f + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:45 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:45 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '51' + X-Response-Time: + - 14.189ms + X-Wf-Rid: + - 1e2e0258-6cdf-4365-b6e6-6c606f79c4f1 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:45 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:45 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '50' + X-Response-Time: + - 11.507ms + X-Wf-Rid: + - e7242d1d-5146-437f-b506-511add0707ee + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:45 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:45 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '49' + X-Response-Time: + - 72.280ms + X-Wf-Rid: + - faf4832b-db19-49d0-b7b5-02366de0bd51 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:45 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:45 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '48' + X-Response-Time: + - 10.092ms + X-Wf-Rid: + - c3c41d8c-5606-4d3b-9a25-73b4440c0ace + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:45 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:45 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '47' + X-Response-Time: + - 12.602ms + X-Wf-Rid: + - 406c4c4a-ad27-4cd6-bd09-2f46c27f4d7e + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:45 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:45 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '46' + X-Response-Time: + - 14.614ms + X-Wf-Rid: + - a63af6b0-aa97-41b9-876d-a65021a79a44 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:45 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:45 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '45' + X-Response-Time: + - 68.317ms + X-Wf-Rid: + - 5e1750d1-1d12-4872-a5ce-e18ffcc4e540 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:45 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:45 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '44' + X-Response-Time: + - 14.657ms + X-Wf-Rid: + - dcb7cde1-0327-4283-8b83-2a2fe30b1025 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:45 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:45 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '43' + X-Response-Time: + - 12.193ms + X-Wf-Rid: + - fe21b87c-3135-46d7-bab6-d1a531ef5b1b + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:45 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:46 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '42' + X-Response-Time: + - 53.825ms + X-Wf-Rid: + - e4d69333-9774-48ef-9543-1b517bdad3e8 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:46 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:46 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '41' + X-Response-Time: + - 13.537ms + X-Wf-Rid: + - 186e7adc-fb0e-4ea5-af23-c4723682a167 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:46 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:46 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '40' + X-Response-Time: + - 11.635ms + X-Wf-Rid: + - 5f31e1e2-db6c-4a33-b4c4-3626df24617d + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:46 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:46 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '39' + X-Response-Time: + - 10.109ms + X-Wf-Rid: + - 21d0448c-0654-46b7-8e7f-7f0e19d2def9 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:46 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:46 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '38' + X-Response-Time: + - 12.164ms + X-Wf-Rid: + - ed4ff5d3-23cf-458f-9a2c-43ff404c6fd8 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:46 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:46 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '37' + X-Response-Time: + - 10.110ms + X-Wf-Rid: + - c9cbcb0d-a0bb-4dcf-8bde-0683881d4f33 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:46 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:46 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '36' + X-Response-Time: + - 13.481ms + X-Wf-Rid: + - 1adb1d12-d468-4c23-bab5-5c511ebbfdd0 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:46 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:46 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '35' + X-Response-Time: + - 13.109ms + X-Wf-Rid: + - d79b8d1a-a2ed-4ca6-90dd-a52b97dde344 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:46 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:46 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '34' + X-Response-Time: + - 17.523ms + X-Wf-Rid: + - 4d1fac48-74bb-4a91-a22f-f2c95d85d61c + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:46 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:46 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '33' + X-Response-Time: + - 11.690ms + X-Wf-Rid: + - 86eab40a-a40d-4e56-a305-8904337d7da1 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:46 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:46 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '32' + X-Response-Time: + - 14.941ms + X-Wf-Rid: + - fce2e72e-ce95-45a8-90ea-eb004e0307dd + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:47 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:47 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '31' + X-Response-Time: + - 13.674ms + X-Wf-Rid: + - 2628f8a3-8313-41e7-9a10-9c7ba1923442 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:47 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:47 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '30' + X-Response-Time: + - 13.553ms + X-Wf-Rid: + - d1a712de-56ee-4f5d-a7f5-425ca9315b4d + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:47 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:47 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '29' + X-Response-Time: + - 11.744ms + X-Wf-Rid: + - 82cd1b0a-9497-4414-b17b-81257edeb5ae + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:47 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:47 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '28' + X-Response-Time: + - 12.635ms + X-Wf-Rid: + - d15807a1-2407-4cc1-8b87-fcaa68b6c67f + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:47 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:47 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '27' + X-Response-Time: + - 13.193ms + X-Wf-Rid: + - 445a7360-1837-48a7-871f-3dc9e0b0b7a7 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:47 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:47 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '26' + X-Response-Time: + - 12.888ms + X-Wf-Rid: + - 39492d36-2a04-472e-9f2d-59bd72a56736 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:47 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:47 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '25' + X-Response-Time: + - 14.006ms + X-Wf-Rid: + - f3486a39-a754-49d7-98eb-e66c00c490ea + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:47 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:47 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '24' + X-Response-Time: + - 89.459ms + X-Wf-Rid: + - 3a747af2-20c5-475b-a3d9-656f213050fd + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:47 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:47 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '23' + X-Response-Time: + - 13.211ms + X-Wf-Rid: + - ce69219c-ab71-47a9-a4f0-2f0a6f31517f + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:47 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:47 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '22' + X-Response-Time: + - 13.890ms + X-Wf-Rid: + - dde47862-fee8-4a53-bdce-3152489b33ab + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:47 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:48 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '21' + X-Response-Time: + - 12.606ms + X-Wf-Rid: + - cc24061a-b79c-4ffb-b7f0-638cf21361a3 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:48 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:48 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '20' + X-Response-Time: + - 16.809ms + X-Wf-Rid: + - 269b0862-88ac-492f-a0a0-1c8acbdb0f29 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:48 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:48 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '19' + X-Response-Time: + - 12.896ms + X-Wf-Rid: + - 56857f94-1129-451f-87f1-e6d484a79125 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:48 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:48 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '18' + X-Response-Time: + - 11.220ms + X-Wf-Rid: + - 96feb567-6cd8-4764-ba93-121b38cb63f8 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:48 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:48 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '17' + X-Response-Time: + - 9.056ms + X-Wf-Rid: + - 706a52f1-5394-4b50-b4e4-cad1296fd120 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:48 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:48 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '16' + X-Response-Time: + - 20.565ms + X-Wf-Rid: + - 57c84b87-d5d8-42d3-8487-ed7785902f12 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:48 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:48 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '15' + X-Response-Time: + - 13.116ms + X-Wf-Rid: + - 94955e82-7391-4f7f-8b29-14ed0ea95c6d + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:48 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:48 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '14' + X-Response-Time: + - 17.535ms + X-Wf-Rid: + - 2dbeac1a-fed0-4163-9a88-3849ca4bfc66 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:48 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:48 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '13' + X-Response-Time: + - 13.098ms + X-Wf-Rid: + - '09f5e3bc-dd71-43b7-bc1c-ee3e64c81732' + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:48 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:48 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '12' + X-Response-Time: + - 12.729ms + X-Wf-Rid: + - 35f765cb-ed10-4b74-a494-9a11a72b718f + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:48 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:48 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '11' + X-Response-Time: + - 26.889ms + X-Wf-Rid: + - 309e41b6-9c76-43ef-9b20-0db7f3737819 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:48 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:49 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '10' + X-Response-Time: + - 13.300ms + X-Wf-Rid: + - d41f4a36-ca0e-4536-b645-b16a887b2a33 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:49 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:49 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '9' + X-Response-Time: + - 50.167ms + X-Wf-Rid: + - 33e6ade9-165f-42a4-8bf1-f27979ee9114 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:49 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:49 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '8' + X-Response-Time: + - 12.301ms + X-Wf-Rid: + - bc7ec805-722d-48ec-906a-335632efd005 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:49 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:49 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '7' + X-Response-Time: + - 13.160ms + X-Wf-Rid: + - 5aa5a33e-2edf-4f2d-a5ab-6a09aa2090e7 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:49 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:49 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '6' + X-Response-Time: + - 12.547ms + X-Wf-Rid: + - 0ed48ab7-cdea-4cee-a5a5-d90aa6dce4fb + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:49 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:49 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '5' + X-Response-Time: + - 15.114ms + X-Wf-Rid: + - f2eada22-501c-4998-b8b6-4927a19763e2 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:49 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:49 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '4' + X-Response-Time: + - 14.521ms + X-Wf-Rid: + - d858d040-0c62-4c68-91d8-8dac9bd1feb9 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:49 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:49 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '3' + X-Response-Time: + - 12.744ms + X-Wf-Rid: + - 2344a2f0-8431-425b-8bd3-391e9e1dbc0e + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:49 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:49 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '2' + X-Response-Time: + - 12.017ms + X-Wf-Rid: + - cc23a623-d727-4197-966f-686a0f44b9c1 + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:49 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:49 GMT + Etag: + - W/"37-245d0dcb" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '1' + X-Response-Time: + - 12.169ms + X-Wf-Rid: + - de30aa34-2813-46fb-9bac-eb30486b508b + Content-Length: + - '55' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[],"count":0,"limit":100,"offset":0,"total":0}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:49 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=100&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 400 + message: Bad Request + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 21:52:49 GMT + Etag: + - W/"8d-5548336d" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '0' + X-Response-Time: + - 6.610ms + X-Wf-Rid: + - 8a6571f1-98f3-49dd-ab44-8c323ae86e12 + Content-Length: + - '141' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"msg":"Rate limit hit","code":400,"name":"RateLimit","path":"/collections/58c9a554a118f71a388bcc89/items","err":"RateLimit: + Rate limit hit"}' + http_version: + recorded_at: Tue, 15 Jan 2019 21:52:49 GMT +recorded_with: VCR 4.0.0 diff --git a/test/fixtures/cassettes/test_it_paginates_items.yml b/test/fixtures/cassettes/test_it_paginates_items.yml new file mode 100644 index 0000000..f34c56d --- /dev/null +++ b/test/fixtures/cassettes/test_it_paginates_items.yml @@ -0,0 +1,322 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items + body: + encoding: UTF-8 + string: '{"fields":{"name":"Test 1","_archived":false,"_draft":false}}' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 22:32:20 GMT + Etag: + - W/"15b-c83b0550" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '60' + X-Response-Time: + - 41.820ms + X-Wf-Rid: + - bd338e42-a666-4189-b9ef-d4e1074e0b09 + Content-Length: + - '347' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"_archived":false,"_draft":false,"name":"Test 1","slug":"test-1","updated-on":"2019-01-15T22:32:20.637Z","updated-by":"Person_58c996964e6fd9182228b62b","created-on":"2019-01-15T22:32:20.637Z","created-by":"Person_58c996964e6fd9182228b62b","published-on":null,"published-by":null,"_cid":"58c9a554a118f71a388bcc89","_id":"5c3e5f74809ca711be32a4cb"}' + http_version: + recorded_at: Tue, 15 Jan 2019 22:32:20 GMT +- request: + method: post + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items + body: + encoding: UTF-8 + string: '{"fields":{"name":"Test 2","_archived":false,"_draft":false}}' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 22:32:20 GMT + Etag: + - W/"15b-2ab3d3bd" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '59' + X-Response-Time: + - 61.767ms + X-Wf-Rid: + - c7fb78f2-e317-48a3-9cc5-cfc3252fa790 + Content-Length: + - '347' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"_archived":false,"_draft":false,"name":"Test 2","slug":"test-2","updated-on":"2019-01-15T22:32:20.712Z","updated-by":"Person_58c996964e6fd9182228b62b","created-on":"2019-01-15T22:32:20.712Z","created-by":"Person_58c996964e6fd9182228b62b","published-on":null,"published-by":null,"_cid":"58c9a554a118f71a388bcc89","_id":"5c3e5f741effa70c063e7473"}' + http_version: + recorded_at: Tue, 15 Jan 2019 22:32:20 GMT +- request: + method: post + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items + body: + encoding: UTF-8 + string: '{"fields":{"name":"Test 3","_archived":false,"_draft":false}}' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 22:32:21 GMT + Etag: + - W/"15b-c5b07c7d" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '58' + X-Response-Time: + - 51.095ms + X-Wf-Rid: + - 8071ff63-0b0f-441d-b2b7-1a153adaf4ff + Content-Length: + - '347' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"_archived":false,"_draft":false,"name":"Test 3","slug":"test-3","updated-on":"2019-01-15T22:32:20.998Z","updated-by":"Person_58c996964e6fd9182228b62b","created-on":"2019-01-15T22:32:20.998Z","created-by":"Person_58c996964e6fd9182228b62b","published-on":null,"published-by":null,"_cid":"58c9a554a118f71a388bcc89","_id":"5c3e5f74809ca7376732a4cd"}' + http_version: + recorded_at: Tue, 15 Jan 2019 22:32:21 GMT +- request: + method: post + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items + body: + encoding: UTF-8 + string: '{"fields":{"name":"Test 4","_archived":false,"_draft":false}}' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 22:32:21 GMT + Etag: + - W/"15b-c25fed3c" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '57' + X-Response-Time: + - 27.129ms + X-Wf-Rid: + - 9a341060-b13c-4227-8cb9-d023728bcd2b + Content-Length: + - '347' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"_archived":false,"_draft":false,"name":"Test 4","slug":"test-4","updated-on":"2019-01-15T22:32:21.136Z","updated-by":"Person_58c996964e6fd9182228b62b","created-on":"2019-01-15T22:32:21.136Z","created-by":"Person_58c996964e6fd9182228b62b","published-on":null,"published-by":null,"_cid":"58c9a554a118f71a388bcc89","_id":"5c3e5f7584421b35aece341a"}' + http_version: + recorded_at: Tue, 15 Jan 2019 22:32:21 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=2&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 22:36:04 GMT + Etag: + - W/"2ec-8187a3cf" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '60' + X-Response-Time: + - 15.584ms + X-Wf-Rid: + - 40fd72f9-a946-4ab3-afa5-3ea33baf3a92 + Content-Length: + - '748' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[{"_archived":false,"_draft":false,"name":"Test 4","slug":"test-4","updated-on":"2019-01-15T22:32:21.136Z","updated-by":"Person_58c996964e6fd9182228b62b","created-on":"2019-01-15T22:32:21.136Z","created-by":"Person_58c996964e6fd9182228b62b","published-on":null,"published-by":null,"_cid":"58c9a554a118f71a388bcc89","_id":"5c3e5f7584421b35aece341a"},{"_archived":false,"_draft":false,"name":"Test + 3","slug":"test-3","updated-on":"2019-01-15T22:32:20.998Z","updated-by":"Person_58c996964e6fd9182228b62b","created-on":"2019-01-15T22:32:20.998Z","created-by":"Person_58c996964e6fd9182228b62b","published-on":null,"published-by":null,"_cid":"58c9a554a118f71a388bcc89","_id":"5c3e5f74809ca7376732a4cd"}],"count":2,"limit":2,"offset":0,"total":5}' + http_version: + recorded_at: Tue, 15 Jan 2019 22:36:04 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=2&offset=2 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 22:36:04 GMT + Etag: + - W/"2ec-bb06342a" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '59' + X-Response-Time: + - 12.933ms + X-Wf-Rid: + - 21f85781-f21c-4c0d-b2de-e2e3159ae989 + Content-Length: + - '748' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[{"_archived":false,"_draft":false,"name":"Test 2","slug":"test-2","updated-on":"2019-01-15T22:32:20.712Z","updated-by":"Person_58c996964e6fd9182228b62b","created-on":"2019-01-15T22:32:20.712Z","created-by":"Person_58c996964e6fd9182228b62b","published-on":null,"published-by":null,"_cid":"58c9a554a118f71a388bcc89","_id":"5c3e5f741effa70c063e7473"},{"_archived":false,"_draft":false,"name":"Test + 1","slug":"test-1","updated-on":"2019-01-15T22:32:20.637Z","updated-by":"Person_58c996964e6fd9182228b62b","created-on":"2019-01-15T22:32:20.637Z","created-by":"Person_58c996964e6fd9182228b62b","published-on":null,"published-by":null,"_cid":"58c9a554a118f71a388bcc89","_id":"5c3e5f74809ca711be32a4cb"}],"count":2,"limit":2,"offset":2,"total":5}' + http_version: + recorded_at: Tue, 15 Jan 2019 22:36:04 GMT +- request: + method: get + uri: https://api.webflow.com/collections/58c9a554a118f71a388bcc89/items?limit=3&offset=0 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Typhoeus - https://github.com/typhoeus/typhoeus + Authorization: + - Bearer 1f0da5c9368af9cb2dcd65d22a6600a8ffa069f70729e129a09787203bc2c2be + Content-Type: + - application/json + Accept-Version: + - 1.0.0 + Expect: + - '' + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 15 Jan 2019 22:39:46 GMT + Etag: + - W/"ATtZSocr06GV61fgrC9ncA==" + X-Ratelimit-Limit: + - '60' + X-Ratelimit-Remaining: + - '60' + X-Response-Time: + - 15.170ms + X-Wf-Rid: + - 1a1ef3a2-4453-4636-bcec-687633f9ece1 + Content-Length: + - '1096' + Connection: + - keep-alive + body: + encoding: UTF-8 + string: '{"items":[{"_archived":false,"_draft":false,"name":"Test 4","slug":"test-4","updated-on":"2019-01-15T22:32:21.136Z","updated-by":"Person_58c996964e6fd9182228b62b","created-on":"2019-01-15T22:32:21.136Z","created-by":"Person_58c996964e6fd9182228b62b","published-on":null,"published-by":null,"_cid":"58c9a554a118f71a388bcc89","_id":"5c3e5f7584421b35aece341a"},{"_archived":false,"_draft":false,"name":"Test + 3","slug":"test-3","updated-on":"2019-01-15T22:32:20.998Z","updated-by":"Person_58c996964e6fd9182228b62b","created-on":"2019-01-15T22:32:20.998Z","created-by":"Person_58c996964e6fd9182228b62b","published-on":null,"published-by":null,"_cid":"58c9a554a118f71a388bcc89","_id":"5c3e5f74809ca7376732a4cd"},{"_archived":false,"_draft":false,"name":"Test + 2","slug":"test-2","updated-on":"2019-01-15T22:32:20.712Z","updated-by":"Person_58c996964e6fd9182228b62b","created-on":"2019-01-15T22:32:20.712Z","created-by":"Person_58c996964e6fd9182228b62b","published-on":null,"published-by":null,"_cid":"58c9a554a118f71a388bcc89","_id":"5c3e5f741effa70c063e7473"}],"count":3,"limit":3,"offset":0,"total":5}' + http_version: + recorded_at: Tue, 15 Jan 2019 22:39:46 GMT +recorded_with: VCR 4.0.0 diff --git a/test/webflow_test.rb b/test/webflow_test.rb index 416f5ff..a98fc47 100644 --- a/test/webflow_test.rb +++ b/test/webflow_test.rb @@ -49,7 +49,12 @@ def test_it_creates_and_updates_items def test_it_fetches_a_single_item VCR.use_cassette('test_it_fetches_a_single_item') do - item = client.items(COLLECTION_ID).first + data = { + _archived: false, + _draft: false, + name: 'Test Item Name ABC', + } + item = client.create_item(COLLECTION_ID, data) assert_equal item['_id'], client.item(COLLECTION_ID, item['_id'])['_id'] end end @@ -67,6 +72,23 @@ def test_handles_errors_gracefully end end + + def test_it_paginates_items + VCR.use_cassette('test_it_paginates_items') do + names = ['Test 1', 'Test 2', 'Test 3', 'Test 4'] + names.each do |name| + client.create_item(COLLECTION_ID, { name: name, _archived: false, _draft: false }) + end + + + page_one = client.paginate_items(COLLECTION_ID, per_page: 2, page: 1) + assert_equal(page_one['count'], 2) + page_two = client.paginate_items(COLLECTION_ID, per_page: 2, page: 2) + assert_equal(page_two['count'], 2) + assert_equal((page_one['items'] == page_two['items']), false) + end + end + def test_it_lists_and_deletes_items VCR.use_cassette('test_it_lists_and_deletes_items') do items = client.items(COLLECTION_ID) @@ -77,6 +99,19 @@ def test_it_lists_and_deletes_items end end + def test_it_respects_items_limit + VCR.use_cassette('test_it_paginates_items') do + names = ['Test 1', 'Test 2', 'Test 3', 'Test 4'] + names.each do |name| + client.create_item(COLLECTION_ID, { name: name, _archived: false, _draft: false }) + end + + limit = 3 + items = client.items(COLLECTION_ID, limit: limit) + assert_equal(items.length, limit) + end + end + def test_it_tracks_rate_limits VCR.use_cassette('test_it_tracks_rate_limits') do client.collections(SITE_ID)