squarespace_api 0.0.4

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.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +1 -0
  3. data/Gemfile +3 -0
  4. data/Gemfile.lock +79 -0
  5. data/README.md +3 -0
  6. data/lib/helper/string.rb +13 -0
  7. data/lib/helper/uri_component_builder.rb +14 -0
  8. data/lib/squarespace_api/client.rb +50 -0
  9. data/lib/squarespace_api/config.rb +27 -0
  10. data/lib/squarespace_api/connection.rb +110 -0
  11. data/lib/squarespace_api/paginated_fetch.rb +13 -0
  12. data/lib/squarespace_api/resource.rb +19 -0
  13. data/lib/squarespace_api/resource_group.rb +35 -0
  14. data/lib/squarespace_api/resource_group_actions.rb +70 -0
  15. data/lib/squarespace_api/resource_groups/inventory.rb +17 -0
  16. data/lib/squarespace_api/resource_groups/inventory_adjustments.rb +8 -0
  17. data/lib/squarespace_api/resource_groups/order_fulfillments.rb +8 -0
  18. data/lib/squarespace_api/resource_groups/orders.rb +18 -0
  19. data/lib/squarespace_api/resource_groups/product_images.rb +29 -0
  20. data/lib/squarespace_api/resource_groups/product_variant_images.rb +8 -0
  21. data/lib/squarespace_api/resource_groups/product_variants.rb +8 -0
  22. data/lib/squarespace_api/resource_groups/products.rb +19 -0
  23. data/lib/squarespace_api/resource_groups/profiles.rb +23 -0
  24. data/lib/squarespace_api/resource_groups/store_pages.rb +14 -0
  25. data/lib/squarespace_api/resource_groups/tokens.rb +14 -0
  26. data/lib/squarespace_api/resource_groups/transactions.rb +19 -0
  27. data/lib/squarespace_api/resource_groups/webhook_subscriptions.rb +22 -0
  28. data/lib/squarespace_api/resources/website.rb +7 -0
  29. data/lib/squarespace_api/version.rb +3 -0
  30. data/lib/squarespace_api.rb +26 -0
  31. data/spec/fixtures/order_response.json +126 -0
  32. data/spec/fixtures/orders_response.json +151 -0
  33. data/spec/spec_helper.rb +9 -0
  34. data/spec/squarespace_api/client_spec.rb +80 -0
  35. data/spec/squarespace_api/config_spec.rb +23 -0
  36. data/spec/squarespace_api/connection_spec.rb +58 -0
  37. data/spec/squarespace_api/resource_group_actions_spec.rb +71 -0
  38. data/spec/squarespace_api/resource_groups/orders_spec.rb +18 -0
  39. data/spec/squarespace_api/resource_groups/product_images_spec.rb +25 -0
  40. data/spec/squarespace_api/resource_groups/tokens_spec.rb +32 -0
  41. data/spec/squarespace_api/resource_groups/webhook_subscriptions_spec.rb +29 -0
  42. data/spec/squarespace_api/resource_spec.rb +19 -0
  43. data/spec/squarespace_api_spec.rb +21 -0
  44. data/squarespace_api.gemspec +22 -0
  45. metadata +196 -0
@@ -0,0 +1,9 @@
1
+ require "webmock/rspec"
2
+ require "pry"
3
+
4
+ $LOAD_PATH.unshift File.expand_path("../lib", __dir__)
5
+ require 'squarespace_api'
6
+ require 'json'
7
+
8
+ RSpec.configure do |config|
9
+ end
@@ -0,0 +1,80 @@
1
+ require 'spec_helper'
2
+
3
+ describe SquarespaceApi::Client do
4
+ let(:access_token) { "test_token" }
5
+ let(:config) { SquarespaceApi::Config.new(access_token: access_token, client_id: 'your_client_id') }
6
+ let(:client) { described_class.new(config) }
7
+
8
+
9
+ describe "resource_groups methods" do
10
+ it '#orders' do
11
+ expect(client.orders).to be_a SquarespaceApi::ResourceGroups::Orders
12
+ end
13
+
14
+ it '#order_fulfillments' do
15
+ expect(client.order_fulfillments).to be_a SquarespaceApi::ResourceGroups::OrderFulfillments
16
+ end
17
+
18
+ it '#products' do
19
+ expect(client.products).to be_a SquarespaceApi::ResourceGroups::Products
20
+ end
21
+
22
+ it '#product_variants' do
23
+ expect(client.product_variants).to be_a SquarespaceApi::ResourceGroups::ProductVariants
24
+ end
25
+
26
+ it '#product_images' do
27
+ expect(client.product_images).to be_a SquarespaceApi::ResourceGroups::ProductImages
28
+ end
29
+
30
+ it '#product_variant_images' do
31
+ expect(client.product_variant_images).to be_a SquarespaceApi::ResourceGroups::ProductVariantImages
32
+ end
33
+
34
+ it '#inventory' do
35
+ expect(client.inventory).to be_a SquarespaceApi::ResourceGroups::Inventory
36
+ end
37
+
38
+ it '#inventory_adjustments' do
39
+ expect(client.inventory_adjustments).to be_a SquarespaceApi::ResourceGroups::InventoryAdjustments
40
+ end
41
+
42
+ it '#profiles' do
43
+ expect(client.profiles).to be_a SquarespaceApi::ResourceGroups::Profiles
44
+ end
45
+
46
+ it '#store_pages' do
47
+ expect(client.store_pages).to be_a SquarespaceApi::ResourceGroups::StorePages
48
+ end
49
+
50
+ it '#transactions' do
51
+ expect(client.transactions).to be_a SquarespaceApi::ResourceGroups::Transactions
52
+ end
53
+
54
+ it '#webhook_subscriptions' do
55
+ expect(client.webhook_subscriptions).to be_a SquarespaceApi::ResourceGroups::WebhookSubscriptions
56
+ end
57
+
58
+ it '#tokens' do
59
+ expect(client.tokens).to be_a SquarespaceApi::ResourceGroups::Tokens
60
+ end
61
+ end
62
+
63
+ describe "#resources methods" do
64
+ it '#website' do
65
+ expect_any_instance_of(SquarespaceApi::Resources::Website).to receive(:get)
66
+ client.website
67
+ end
68
+ end
69
+
70
+ describe '#build_oauth_authorize_url' do
71
+ it 'should construct correct url' do
72
+ expect(client.build_oauth_authorize_url(
73
+ redirect_url: 'https://api.test.com/squarespace',
74
+ scope: 'website.orders,website.orders.read',
75
+ state: '1234',
76
+ access_type: "offline"
77
+ )).to eq('https://login.squarespace.com/api/1/login/oauth/provider/authorize?client_id=your_client_id&redirect_url=https://api.test.com/squarespace&scope=website.orders,website.orders.read&state=1234&access_type=offline')
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+
3
+ describe SquarespaceApi::Config do
4
+ let(:config) do
5
+ described_class.new(
6
+ client_id: 'test_client_id',
7
+ client_secret: 'test_client_secret',
8
+ access_token: 'test_access_token'
9
+ )
10
+ end
11
+
12
+ it 'has an client_id' do
13
+ expect(config.client_id).to eq('test_client_id')
14
+ end
15
+
16
+ it 'has an client_secret' do
17
+ expect(config.client_secret).to eq('test_client_secret')
18
+ end
19
+
20
+ it 'has an access_token' do
21
+ expect(config.access_token).to eq('test_access_token')
22
+ end
23
+ end
@@ -0,0 +1,58 @@
1
+ require 'spec_helper'
2
+
3
+ describe SquarespaceApi::Connection do
4
+ let(:config) { SquarespaceApi::Config.new( access_token: 'test_access_token') }
5
+ let(:connection) { described_class.new(config) }
6
+
7
+ describe "#request" do
8
+ before do
9
+ stub_request(:get, "https://api.squarespace.com")
10
+ .to_return(status: status_code, body: body.to_json, headers: { "Content-Type" => "application/json" })
11
+ end
12
+
13
+ let(:status_code) { 200 }
14
+ let(:body) { { "result" => {} } }
15
+ it "should send http request" do
16
+ connection.get('https://api.squarespace.com')
17
+ expect(a_request(:get, "https://api.squarespace.com")).to have_been_made
18
+ end
19
+
20
+ context "when request fails" do
21
+ let(:status_code) { 401 }
22
+ let(:body) { { message: "Unauthorized" } }
23
+ it "should raise error" do
24
+ expect {
25
+ connection.get('https://api.squarespace.com')
26
+ }.to raise_error(SquarespaceApi::Errors::Unauthorized, "Unauthorized")
27
+ end
28
+ end
29
+ end
30
+
31
+ describe "#with_app_session" do
32
+ before do
33
+ stub_request(:get, "https://api.squarespace.com/1.0/commerce/orders")
34
+ .to_return(status: 200, body: {}.to_json, headers: { "Content-Type" => "application/json" })
35
+ end
36
+
37
+ it "should send http request" do
38
+ connection.with_app_session { connection.get('commerce/orders') }
39
+
40
+ expect(a_request(:get, "https://api.squarespace.com/1.0/commerce/orders")
41
+ .with(headers: {Authorization: "Bearer test_access_token"})).to have_been_made
42
+ end
43
+ end
44
+
45
+ describe "#with_oauth_session" do
46
+ before do
47
+ stub_request(:get, "https://login.squarespace.com/api/1/login/oauth/provider/token")
48
+ .to_return(status: 200, body: {}.to_json, headers: { "Content-Type" => "application/json" })
49
+ end
50
+
51
+ it "should send http request" do
52
+ connection.with_oauth_session { connection.get('token') }
53
+
54
+ expect(a_request(:get, "https://login.squarespace.com/api/1/login/oauth/provider/token")
55
+ .with(headers: {Authorization: "Basic Og=="})).to have_been_made
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,71 @@
1
+ require 'spec_helper'
2
+ require 'squarespace_api/resource_group'
3
+
4
+ class DummyResrouce < SquarespaceApi::ResourceGroup
5
+ PATH = 'commerce/dummy'.freeze
6
+ allowed_actions :all, :find, :find_by_ids, :create, :delete, :update
7
+
8
+ def parse_collection(response)
9
+ response.body['dummy']
10
+ end
11
+ end
12
+
13
+ describe SquarespaceApi::ResourceGroupActions do
14
+ let(:connection) { SquarespaceApi::Connection.new(SquarespaceApi::Config.new).initialize_app_session }
15
+ let(:resource) { DummyResrouce.new(connection: connection) }
16
+
17
+ describe '#all' do
18
+ before do
19
+ stub_request(:get, "https://api.squarespace.com/1.0/commerce/dummy?status=pending")
20
+ .to_return(status: 200, body: { 'dummy' => [] }.to_json)
21
+ end
22
+
23
+ it { expect(resource.all(status: 'pending')).to eq([]) }
24
+ it { expect(resource.where(status: 'pending')).to eq([]) }
25
+ end
26
+
27
+ describe '#find' do
28
+ before do
29
+ stub_request(:get, "https://api.squarespace.com/1.0/commerce/dummy/123")
30
+ .to_return(status: 200, body: { id: 123 }.to_json)
31
+ end
32
+
33
+ it { expect(resource.find(123)).to eq("id" => 123) }
34
+ end
35
+
36
+ describe '#find_by_ids' do
37
+ before do
38
+ stub_request(:get, "https://api.squarespace.com/1.0/commerce/dummy/1,2,3")
39
+ .to_return(status: 200, body: { 'dummy' => [] }.to_json)
40
+ end
41
+
42
+ it { expect(resource.find_by_ids([1, 2, 3])).to eq([]) }
43
+ end
44
+
45
+ describe '#create' do
46
+ before do
47
+ stub_request(:post, "https://api.squarespace.com/1.0/commerce/dummy")
48
+ .to_return(status: 200)
49
+ end
50
+
51
+ it { expect(resource.create(some_data: 'data')).to eq(true) }
52
+ end
53
+
54
+ describe '#update' do
55
+ before do
56
+ stub_request(:post, "https://api.squarespace.com/1.0/commerce/dummy/123")
57
+ .to_return(status: 200, body: { update_data: 'test data' }.to_json)
58
+ end
59
+
60
+ it { expect(resource.update(123, update_data: 1)).to eq('update_data' => 'test data') }
61
+ end
62
+
63
+ describe '#delete' do
64
+ before do
65
+ stub_request(:delete, "https://api.squarespace.com/1.0/commerce/dummy/123")
66
+ .to_return(status: 200)
67
+ end
68
+
69
+ it { expect(resource.delete(123)).to eq(true) }
70
+ end
71
+ end
@@ -0,0 +1,18 @@
1
+ require 'spec_helper'
2
+
3
+ describe SquarespaceApi::ResourceGroups::Orders do
4
+ let(:access_token) { "test_token" }
5
+ let(:config) { SquarespaceApi::Config.new(access_token: access_token) }
6
+ let(:connection) { SquarespaceApi::Connection.new(config).initialize_app_session }
7
+ let(:orders_api) { described_class.new(connection: connection) }
8
+
9
+ describe "fulfil" do
10
+ before { stub_request(:post, "https://api.squarespace.com/1.0/commerce/orders/123/fulfillments") }
11
+
12
+ it "should send correct request" do
13
+ orders_api.fulfil('123', { 'shouldSendNotification' => false })
14
+ expect(a_request(:post, "https://api.squarespace.com/1.0/commerce/orders/123/fulfillments")
15
+ .with(body: { shouldSendNotification: false }.to_json)).to have_been_made
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,25 @@
1
+ require 'spec_helper'
2
+
3
+ describe SquarespaceApi::ResourceGroups::ProductImages do
4
+ let(:connection) { SquarespaceApi::Connection.new(SquarespaceApi::Config.new).initialize_app_session }
5
+ let(:api) { described_class.new(connection: connection) }
6
+
7
+ describe "#status" do
8
+ before { stub_request(:get, "https://api.squarespace.com/1.0/commerce/products/1/images/1/status") }
9
+
10
+ it "should send correct request" do
11
+ api.status(1, { product_id: '1' })
12
+ expect(a_request(:get, "https://api.squarespace.com/1.0/commerce/products/1/images/1/status")).to have_been_made
13
+ end
14
+ end
15
+
16
+ describe "#reorder" do
17
+ before { stub_request(:post, "https://api.squarespace.com/1.0/commerce/products/1/images/1/order") }
18
+
19
+ it "should send correct request" do
20
+ api.order(1, { product_id: '1', afterImageId: '2' })
21
+ expect(a_request(:post, "https://api.squarespace.com/1.0/commerce/products/1/images/1/order")
22
+ .with(body: { 'afterImageId' => '2' }.to_json)).to have_been_made
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,32 @@
1
+ require 'spec_helper'
2
+
3
+ describe SquarespaceApi::ResourceGroups::Tokens do
4
+ let(:connection) { SquarespaceApi::Connection.new(SquarespaceApi::Config.new).initialize_app_session }
5
+ let(:api) { described_class.new(connection: connection) }
6
+
7
+ let(:token_response) do
8
+ {
9
+ "token" => "T1|Rr0Wc95uu3cSeBh06yB...",
10
+ "token_type" => "bearer",
11
+ "access_token" => "T1|Rr0Wc95uu3cSeBh06yB...",
12
+ "access_token_expires_at" => "1553532363.542",
13
+ "refresh_token" => "1|KYUYh35zcwzx4Zt/oty3...",
14
+ "refresh_token_expires_at" => "1554135363.542"
15
+ }
16
+ end
17
+
18
+ describe "#create" do
19
+ before do
20
+ stub_request(:post, "https://login.squarespace.com/api/1/login/oauth/provider/tokens")
21
+ .with(headers: { 'Authorization'=>'Basic Og==' })
22
+ .and_return(status: 200, body: token_response.to_json)
23
+ end
24
+
25
+ it "should get expected response" do
26
+ expect(api.create(
27
+ refresh_token: 'some_refresh_token',
28
+ grant_type: "refresh_token"
29
+ )).to eq(token_response)
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,29 @@
1
+ require 'spec_helper'
2
+
3
+ describe SquarespaceApi::ResourceGroups::WebhookSubscriptions do
4
+ let(:connection) { SquarespaceApi::Connection.new(SquarespaceApi::Config.new).initialize_app_session }
5
+ let(:api) { described_class.new(connection: connection) }
6
+
7
+ describe "#send_test_notification" do
8
+ before do
9
+ stub_request(:post, "https://api.squarespace.com/1.0/webhook_subscriptions/1/actions/sendTestNotification")
10
+ .with(body: { topic: 'extension.uninstall' }.to_json)
11
+ .and_return(status: 200)
12
+ end
13
+
14
+ it "should send correct request" do
15
+ expect(api.send_test_notification(1, { topic: 'extension.uninstall' })).to eq(true)
16
+ end
17
+ end
18
+
19
+ describe "#rotate_secret" do
20
+ before do
21
+ stub_request(:post, "https://api.squarespace.com/1.0/webhook_subscriptions/1/actions/rotateSecret")
22
+ .and_return(status: 200, body: { 'secret' => 'test_secret' }.to_json)
23
+ end
24
+
25
+ it "should send correct request" do
26
+ expect(api.rotate_secret(1)).to eq('secret' => 'test_secret')
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,19 @@
1
+ require 'spec_helper'
2
+
3
+ class Dummy < SquarespaceApi::Resource
4
+ PATH = 'commerce/dummy'
5
+ end
6
+
7
+ describe SquarespaceApi::Resource do
8
+ let(:connection) { SquarespaceApi::Connection.new(SquarespaceApi::Config.new).initialize_app_session }
9
+ let(:resource) { Dummy.new(connection: connection) }
10
+
11
+ describe '#get' do
12
+ before do
13
+ stub_request(:get, "https://api.squarespace.com/1.0/commerce/dummy")
14
+ .to_return(status: 200, body: { 'name': 'dummy' }.to_json)
15
+ end
16
+
17
+ it { expect(resource.get).to eq('name' => 'dummy') }
18
+ end
19
+ end
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ describe SquarespaceApi do
4
+ it 'has a version number' do
5
+ expect(SquarespaceApi::VERSION).to eq('0.0.4')
6
+ end
7
+
8
+ context 'configure' do
9
+ SquarespaceApi.configure do |config|
10
+ config.access_token = 'access_token'
11
+ config.client_id = 'client_id'
12
+ config.client_secret = 'client_secret'
13
+ end
14
+
15
+ it 'should configure' do
16
+ expect(SquarespaceApi.config.access_token).to eq('access_token')
17
+ expect(SquarespaceApi.config.client_id).to eq('client_id')
18
+ expect(SquarespaceApi.config.client_secret).to eq('client_secret')
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,22 @@
1
+ Gem::Specification.new do |spec|
2
+ spec.name = "squarespace_api"
3
+ spec.version = "0.0.4"
4
+ spec.summary = "Ruby gem interacting with the Squarespace API."
5
+ spec.description = "Ruby gem interacting with the Squarespace API."
6
+ spec.authors = ["cdragon"]
7
+ spec.email = "cdragon1116@gmail.com"
8
+ spec.homepage = "https://github.com/cdragon1116/squarespace_api"
9
+ spec.license = "MIT"
10
+ spec.files = `git ls-files -z`.split("\x0")
11
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
12
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
13
+
14
+ spec.add_development_dependency "rspec"
15
+ spec.add_development_dependency "pry"
16
+ spec.add_development_dependency "webmock"
17
+
18
+ spec.add_dependency "faraday"
19
+ spec.add_dependency "faraday_middleware"
20
+ spec.add_dependency "json"
21
+ spec.add_dependency "yaml"
22
+ end
metadata ADDED
@@ -0,0 +1,196 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: squarespace_api
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.4
5
+ platform: ruby
6
+ authors:
7
+ - cdragon
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-08-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pry
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: webmock
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: faraday
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: faraday_middleware
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: json
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: yaml
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: Ruby gem interacting with the Squarespace API.
112
+ email: cdragon1116@gmail.com
113
+ executables: []
114
+ extensions: []
115
+ extra_rdoc_files: []
116
+ files:
117
+ - ".rspec"
118
+ - Gemfile
119
+ - Gemfile.lock
120
+ - README.md
121
+ - lib/helper/string.rb
122
+ - lib/helper/uri_component_builder.rb
123
+ - lib/squarespace_api.rb
124
+ - lib/squarespace_api/client.rb
125
+ - lib/squarespace_api/config.rb
126
+ - lib/squarespace_api/connection.rb
127
+ - lib/squarespace_api/paginated_fetch.rb
128
+ - lib/squarespace_api/resource.rb
129
+ - lib/squarespace_api/resource_group.rb
130
+ - lib/squarespace_api/resource_group_actions.rb
131
+ - lib/squarespace_api/resource_groups/inventory.rb
132
+ - lib/squarespace_api/resource_groups/inventory_adjustments.rb
133
+ - lib/squarespace_api/resource_groups/order_fulfillments.rb
134
+ - lib/squarespace_api/resource_groups/orders.rb
135
+ - lib/squarespace_api/resource_groups/product_images.rb
136
+ - lib/squarespace_api/resource_groups/product_variant_images.rb
137
+ - lib/squarespace_api/resource_groups/product_variants.rb
138
+ - lib/squarespace_api/resource_groups/products.rb
139
+ - lib/squarespace_api/resource_groups/profiles.rb
140
+ - lib/squarespace_api/resource_groups/store_pages.rb
141
+ - lib/squarespace_api/resource_groups/tokens.rb
142
+ - lib/squarespace_api/resource_groups/transactions.rb
143
+ - lib/squarespace_api/resource_groups/webhook_subscriptions.rb
144
+ - lib/squarespace_api/resources/website.rb
145
+ - lib/squarespace_api/version.rb
146
+ - spec/fixtures/order_response.json
147
+ - spec/fixtures/orders_response.json
148
+ - spec/spec_helper.rb
149
+ - spec/squarespace_api/client_spec.rb
150
+ - spec/squarespace_api/config_spec.rb
151
+ - spec/squarespace_api/connection_spec.rb
152
+ - spec/squarespace_api/resource_group_actions_spec.rb
153
+ - spec/squarespace_api/resource_groups/orders_spec.rb
154
+ - spec/squarespace_api/resource_groups/product_images_spec.rb
155
+ - spec/squarespace_api/resource_groups/tokens_spec.rb
156
+ - spec/squarespace_api/resource_groups/webhook_subscriptions_spec.rb
157
+ - spec/squarespace_api/resource_spec.rb
158
+ - spec/squarespace_api_spec.rb
159
+ - squarespace_api.gemspec
160
+ homepage: https://github.com/cdragon1116/squarespace_api
161
+ licenses:
162
+ - MIT
163
+ metadata: {}
164
+ post_install_message:
165
+ rdoc_options: []
166
+ require_paths:
167
+ - lib
168
+ required_ruby_version: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: '0'
173
+ required_rubygems_version: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - ">="
176
+ - !ruby/object:Gem::Version
177
+ version: '0'
178
+ requirements: []
179
+ rubygems_version: 3.0.6
180
+ signing_key:
181
+ specification_version: 4
182
+ summary: Ruby gem interacting with the Squarespace API.
183
+ test_files:
184
+ - spec/fixtures/order_response.json
185
+ - spec/fixtures/orders_response.json
186
+ - spec/spec_helper.rb
187
+ - spec/squarespace_api/client_spec.rb
188
+ - spec/squarespace_api/config_spec.rb
189
+ - spec/squarespace_api/connection_spec.rb
190
+ - spec/squarespace_api/resource_group_actions_spec.rb
191
+ - spec/squarespace_api/resource_groups/orders_spec.rb
192
+ - spec/squarespace_api/resource_groups/product_images_spec.rb
193
+ - spec/squarespace_api/resource_groups/tokens_spec.rb
194
+ - spec/squarespace_api/resource_groups/webhook_subscriptions_spec.rb
195
+ - spec/squarespace_api/resource_spec.rb
196
+ - spec/squarespace_api_spec.rb