nimbu-api 0.4.4 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +13 -0
  3. data/README.md +25 -17
  4. data/lib/nimbu-api/client.rb +47 -28
  5. data/lib/nimbu-api/connection.rb +29 -31
  6. data/lib/nimbu-api/endpoint.rb +43 -44
  7. data/lib/nimbu-api/endpoints/activities.rb +3 -4
  8. data/lib/nimbu-api/endpoints/authorizations.rb +16 -23
  9. data/lib/nimbu-api/endpoints/blogs/articles.rb +60 -0
  10. data/lib/nimbu-api/endpoints/blogs.rb +48 -0
  11. data/lib/nimbu-api/endpoints/channels/entries.rb +19 -20
  12. data/lib/nimbu-api/endpoints/channels.rb +11 -13
  13. data/lib/nimbu-api/endpoints/collections.rb +10 -10
  14. data/lib/nimbu-api/endpoints/coupons.rb +10 -10
  15. data/lib/nimbu-api/endpoints/customers.rb +14 -14
  16. data/lib/nimbu-api/endpoints/devices.rb +11 -11
  17. data/lib/nimbu-api/endpoints/functions.rb +3 -4
  18. data/lib/nimbu-api/endpoints/jobs.rb +3 -4
  19. data/lib/nimbu-api/endpoints/login.rb +4 -7
  20. data/lib/nimbu-api/endpoints/menus.rb +48 -0
  21. data/lib/nimbu-api/endpoints/orders.rb +6 -6
  22. data/lib/nimbu-api/endpoints/pages.rb +50 -0
  23. data/lib/nimbu-api/endpoints/products.rb +16 -16
  24. data/lib/nimbu-api/endpoints/redirects.rb +50 -0
  25. data/lib/nimbu-api/endpoints/roles.rb +10 -10
  26. data/lib/nimbu-api/endpoints/simulator.rb +3 -4
  27. data/lib/nimbu-api/endpoints/sites.rb +7 -9
  28. data/lib/nimbu-api/endpoints/themes/assets.rb +6 -8
  29. data/lib/nimbu-api/endpoints/themes/layouts.rb +7 -8
  30. data/lib/nimbu-api/endpoints/themes/snippets.rb +6 -8
  31. data/lib/nimbu-api/endpoints/themes/templates.rb +6 -8
  32. data/lib/nimbu-api/endpoints/themes.rb +14 -16
  33. data/lib/nimbu-api/endpoints/translations.rb +10 -10
  34. data/lib/nimbu-api/endpoints/uploads.rb +50 -0
  35. data/lib/nimbu-api/endpoints/users.rb +3 -4
  36. data/lib/nimbu-api/endpoints/videos.rb +6 -8
  37. data/lib/nimbu-api/endpoints/webhooks.rb +8 -8
  38. data/lib/nimbu-api/file.rb +13 -0
  39. data/lib/nimbu-api/version.rb +3 -1
  40. data/lib/nimbu-api.rb +45 -37
  41. data/nimbu-api.gemspec +25 -16
  42. metadata +81 -17
@@ -0,0 +1,50 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: true
3
+
4
+ module Nimbu
5
+ module Endpoints
6
+ class Pages < Endpoint
7
+ def list(*args, &block)
8
+ arguments(args)
9
+
10
+ response = get_request("/pages", arguments.params)
11
+ return response unless block_given?
12
+ response.each(&block)
13
+ end
14
+ alias_method :all, :list
15
+
16
+ def get(*args)
17
+ arguments(args, required: [:page_id])
18
+
19
+ get_request("/pages/#{page_id}", arguments.params)
20
+ end
21
+ alias_method :find, :get
22
+
23
+ def count(*args)
24
+ arguments(args)
25
+
26
+ get_request("/pages/count", arguments.params)
27
+ end
28
+
29
+ def create(*args)
30
+ arguments(args)
31
+
32
+ post_request("/pages", arguments.params, with_attachments: true)
33
+ end
34
+
35
+ def update(*args)
36
+ arguments(args, required: [:page_id])
37
+
38
+ patch_request("/pages/#{page_id}", arguments.params, with_attachments: true)
39
+ end
40
+ alias_method :edit, :update
41
+
42
+ def delete(*args)
43
+ arguments(args, required: [:page_id])
44
+
45
+ delete_request("/pages/#{page_id}", arguments.params)
46
+ end
47
+ alias_method :remove, :delete
48
+ end # Pages
49
+ end # Endpoints
50
+ end # Nimbu
@@ -1,33 +1,34 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  module Nimbu
4
5
  module Endpoints
5
6
  class Products < Endpoint
6
- def list(*args)
7
+ def list(*args, &block)
7
8
  arguments(args)
8
9
 
9
10
  response = get_request("/products", arguments.params)
10
11
  return response unless block_given?
11
- response.each { |el| yield el }
12
+ response.each(&block)
12
13
  end
13
- alias :all :list
14
+ alias_method :all, :list
14
15
 
15
- def customizations(*args)
16
+ def customizations(*args, &block)
16
17
  arguments(args)
17
18
 
18
19
  response = get_request("/products/customizations", arguments.params)
19
20
  return response unless block_given?
20
- response.each { |el| yield el }
21
+ response.each(&block)
21
22
  end
22
- alias :fields :customizations
23
- alias :custom_fields :customizations
23
+ alias_method :fields, :customizations
24
+ alias_method :custom_fields, :customizations
24
25
 
25
26
  def get(*args)
26
- arguments(args, :required => [:product_id])
27
+ arguments(args, required: [:product_id])
27
28
 
28
29
  get_request("/products/#{product_id}", arguments.params)
29
30
  end
30
- alias :find :get
31
+ alias_method :find, :get
31
32
 
32
33
  def count(*args)
33
34
  arguments(args)
@@ -38,23 +39,22 @@ module Nimbu
38
39
  def create(*args)
39
40
  arguments(args)
40
41
 
41
- post_request("/products", arguments.params)
42
+ post_request("/products", arguments.params, with_attachments: true)
42
43
  end
43
44
 
44
45
  def update(*args)
45
- arguments(args, :required => [:product_id])
46
+ arguments(args, required: [:product_id])
46
47
 
47
- patch_request("/products/#{product_id}", arguments.params)
48
+ patch_request("/products/#{product_id}", arguments.params, with_attachments: true)
48
49
  end
49
- alias :edit :update
50
+ alias_method :edit, :update
50
51
 
51
52
  def delete(*args)
52
- arguments(args, :required => [:product_id])
53
+ arguments(args, required: [:product_id])
53
54
 
54
55
  delete_request("/products/#{product_id}", arguments.params)
55
56
  end
56
- alias :remove :delete
57
-
57
+ alias_method :remove, :delete
58
58
  end # Products
59
59
  end # Endpoints
60
60
  end # Nimbu
@@ -0,0 +1,50 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: true
3
+
4
+ module Nimbu
5
+ module Endpoints
6
+ class Redirects < Endpoint
7
+ def list(*args, &block)
8
+ arguments(args)
9
+
10
+ response = get_request("/redirects", arguments.params)
11
+ return response unless block_given?
12
+ response.each(&block)
13
+ end
14
+ alias_method :all, :list
15
+
16
+ def get(*args)
17
+ arguments(args, required: [:redirect_id])
18
+
19
+ get_request("/redirects/#{redirect_id}", arguments.params)
20
+ end
21
+ alias_method :find, :get
22
+
23
+ def count(*args)
24
+ arguments(args)
25
+
26
+ get_request("/redirects/count", arguments.params)
27
+ end
28
+
29
+ def create(*args)
30
+ arguments(args)
31
+
32
+ post_request("/redirects", arguments.params)
33
+ end
34
+
35
+ def update(*args)
36
+ arguments(args, required: [:redirect_id])
37
+
38
+ patch_request("/redirects/#{redirect_id}", arguments.params)
39
+ end
40
+ alias_method :edit, :update
41
+
42
+ def delete(*args)
43
+ arguments(args, required: [:redirect_id])
44
+
45
+ delete_request("/redirects/#{redirect_id}", arguments.params)
46
+ end
47
+ alias_method :remove, :delete
48
+ end # Redirects
49
+ end # Endpoints
50
+ end # Nimbu
@@ -1,23 +1,24 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  module Nimbu
4
5
  module Endpoints
5
6
  class Roles < Endpoint
6
- def list(*args)
7
+ def list(*args, &block)
7
8
  arguments(args)
8
9
 
9
10
  response = get_request("/roles", arguments.params)
10
11
  return response unless block_given?
11
- response.each { |el| yield el }
12
+ response.each(&block)
12
13
  end
13
- alias :all :list
14
+ alias_method :all, :list
14
15
 
15
16
  def get(*args)
16
- arguments(args, :required => [:role_id])
17
+ arguments(args, required: [:role_id])
17
18
 
18
19
  get_request("/roles/#{role_id}", arguments.params)
19
20
  end
20
- alias :find :get
21
+ alias_method :find, :get
21
22
 
22
23
  def create(*args)
23
24
  arguments(args)
@@ -26,19 +27,18 @@ module Nimbu
26
27
  end
27
28
 
28
29
  def update(*args)
29
- arguments(args, :required => [:role_id])
30
+ arguments(args, required: [:role_id])
30
31
 
31
32
  patch_request("/roles/#{role_id}", arguments.params)
32
33
  end
33
- alias :edit :update
34
+ alias_method :edit, :update
34
35
 
35
36
  def delete(*args)
36
- arguments(args, :required => [:role_id])
37
+ arguments(args, required: [:role_id])
37
38
 
38
39
  delete_request("/roles/#{role_id}", arguments.params)
39
40
  end
40
- alias :remove :delete
41
-
41
+ alias_method :remove, :delete
42
42
  end # Roles
43
43
  end # Endpoints
44
44
  end # Nimbu
@@ -1,23 +1,22 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  module Nimbu
4
5
  module Endpoints
5
6
  class Simulator < Endpoint
6
-
7
7
  def recipe(*args)
8
8
  arguments(args)
9
9
 
10
10
  response = post_request("/simulator/recipe", arguments.params)
11
- return response
11
+ response
12
12
  end
13
13
 
14
14
  def render(*args)
15
15
  arguments(args)
16
16
 
17
17
  response = post_request("/simulator/render", arguments.params)
18
- return response
18
+ response
19
19
  end
20
-
21
20
  end # Simulator
22
21
  end # Endpoints
23
22
  end # Nimbu
@@ -1,34 +1,32 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  module Nimbu
4
5
  module Endpoints
5
6
  class Sites < Endpoint
6
-
7
- def list(*args)
7
+ def list(*args, &block)
8
8
  require_authentication
9
9
  arguments(args)
10
10
 
11
11
  response = get_request("/sites", arguments.params)
12
12
  return response unless block_given?
13
- response.each { |el| yield el }
13
+ response.each(&block)
14
14
  end
15
- alias :all :list
15
+ alias_method :all, :list
16
16
 
17
17
  def get(*args)
18
18
  require_authentication
19
- arguments(args, :required => [:site_id])
19
+ arguments(args, required: [:site_id])
20
20
 
21
21
  get_request("/sites/#{site_id}", arguments.params)
22
22
  end
23
- alias :find :get
24
-
23
+ alias_method :find, :get
25
24
 
26
25
  private
27
26
 
28
27
  def require_authentication
29
- raise ArgumentError, 'You need to be authenticated to access the sites' unless authenticated?
28
+ raise ArgumentError, "You need to be authenticated to access the sites" unless authenticated?
30
29
  end
31
-
32
30
  end # Authorizations
33
31
  end # Endpoints
34
32
  end # Nimbu
@@ -1,28 +1,26 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  module Nimbu
4
5
  module Endpoints
5
6
  class Themes::Assets < Endpoint
6
-
7
7
  def create(*args)
8
- arguments(args, :required => [:theme_id])
8
+ arguments(args, required: [:theme_id])
9
9
  forced = arguments.params.delete("force")
10
10
 
11
11
  if !forced.nil?
12
- post_request("/themes/#{theme_id}/assets?force=true", arguments.params, :with_attachments => true)
12
+ post_request("/themes/#{theme_id}/assets?force=true", arguments.params, with_attachments: true)
13
13
  else
14
- post_request("/themes/#{theme_id}/assets", arguments.params, :with_attachments => true)
14
+ post_request("/themes/#{theme_id}/assets", arguments.params, with_attachments: true)
15
15
  end
16
16
  end
17
17
 
18
18
  def delete(*args)
19
- arguments(args, :required => [:theme_id, :asset_id])
19
+ arguments(args, required: [:theme_id, :asset_id])
20
20
 
21
21
  delete_request("/themes/#{theme_id}/assets/#{asset_id}", arguments.params)
22
22
  end
23
- alias :remove :delete
24
-
25
-
23
+ alias_method :remove, :delete
26
24
  end # Themes::Layouts
27
25
  end # Endpoints
28
26
  end # Nimbu
@@ -1,32 +1,31 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
3
+
2
4
  module Nimbu
3
5
  module Endpoints
4
6
  class Themes::Layouts < Endpoint
5
-
6
7
  def create(*args)
7
- arguments(args, :required => [:theme_id])
8
+ arguments(args, required: [:theme_id])
8
9
 
9
10
  forced = arguments.params.delete("force")
10
11
  query_params = {}
11
- query_params = {force: forced} unless forced.nil?
12
+ query_params = { force: forced } unless forced.nil?
12
13
 
13
14
  post_request("/themes/#{theme_id}/layouts", arguments.params, params: query_params)
14
15
  end
15
16
 
16
17
  def get(*args)
17
- arguments(args, :required => [:theme_id, :layout_id])
18
+ arguments(args, required: [:theme_id, :layout_id])
18
19
 
19
20
  get_request("/themes/#{theme_id}/layouts/#{layout_id}", arguments.params)
20
21
  end
21
22
 
22
23
  def delete(*args)
23
- arguments(args, :required => [:theme_id, :layout_id])
24
+ arguments(args, required: [:theme_id, :layout_id])
24
25
 
25
26
  delete_request("/themes/#{theme_id}/layouts/#{layout_id}", arguments.params)
26
27
  end
27
- alias :remove :delete
28
-
29
-
28
+ alias_method :remove, :delete
30
29
  end # Themes::Layouts
31
30
  end # Endpoints
32
31
  end # Nimbu
@@ -1,33 +1,31 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  module Nimbu
4
5
  module Endpoints
5
6
  class Themes::Snippets < Endpoint
6
-
7
7
  def create(*args)
8
- arguments(args, :required => [:theme_id])
8
+ arguments(args, required: [:theme_id])
9
9
 
10
10
  forced = arguments.params.delete("force")
11
11
  query_params = {}
12
- query_params = {force: forced} unless forced.nil?
12
+ query_params = { force: forced } unless forced.nil?
13
13
 
14
14
  post_request("/themes/#{theme_id}/snippets", arguments.params, params: query_params)
15
15
  end
16
16
 
17
17
  def get(*args)
18
- arguments(args, :required => [:theme_id, :snippet_id])
18
+ arguments(args, required: [:theme_id, :snippet_id])
19
19
 
20
20
  get_request("/themes/#{theme_id}/snippets/#{snippet_id}", arguments.params)
21
21
  end
22
22
 
23
23
  def delete(*args)
24
- arguments(args, :required => [:theme_id, :snippet_id])
24
+ arguments(args, required: [:theme_id, :snippet_id])
25
25
 
26
26
  delete_request("/themes/#{theme_id}/snippets/#{snippet_id}", arguments.params)
27
27
  end
28
- alias :remove :delete
29
-
30
-
28
+ alias_method :remove, :delete
31
29
  end # Themes::Snippets
32
30
  end # Endpoints
33
31
  end # Nimbu
@@ -1,33 +1,31 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  module Nimbu
4
5
  module Endpoints
5
6
  class Themes::Templates < Endpoint
6
-
7
7
  def create(*args)
8
- arguments(args, :required => [:theme_id])
8
+ arguments(args, required: [:theme_id])
9
9
 
10
10
  forced = arguments.params.delete("force")
11
11
  query_params = {}
12
- query_params = {force: forced} unless forced.nil?
12
+ query_params = { force: forced } unless forced.nil?
13
13
 
14
14
  post_request("/themes/#{theme_id}/templates", arguments.params, params: query_params)
15
15
  end
16
16
 
17
17
  def get(*args)
18
- arguments(args, :required => [:theme_id, :template_id])
18
+ arguments(args, required: [:theme_id, :template_id])
19
19
 
20
20
  get_request("/themes/#{theme_id}/templates/#{template_id}", arguments.params)
21
21
  end
22
22
 
23
23
  def delete(*args)
24
- arguments(args, :required => [:theme_id, :template_id])
24
+ arguments(args, required: [:theme_id, :template_id])
25
25
 
26
26
  delete_request("/themes/#{theme_id}/templates/#{template_id}", arguments.params)
27
27
  end
28
- alias :remove :delete
29
-
30
-
28
+ alias_method :remove, :delete
31
29
  end # Themes::Templates
32
30
  end # Endpoints
33
31
  end # Nimbu
@@ -1,42 +1,40 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  module Nimbu
4
5
  module Endpoints
5
6
  class Themes < Endpoint
6
-
7
- def layouts(options={}, &block)
8
- Nimbu::Builder.new('Themes::Layouts', current_options.merge(options), &block)
7
+ def layouts(options = {}, &block)
8
+ Nimbu::Builder.new("Themes::Layouts", current_options.merge(options), &block)
9
9
  end
10
10
 
11
- def templates(options={}, &block)
12
- Nimbu::Builder.new('Themes::Templates', current_options.merge(options), &block)
11
+ def templates(options = {}, &block)
12
+ Nimbu::Builder.new("Themes::Templates", current_options.merge(options), &block)
13
13
  end
14
14
 
15
- def snippets(options={}, &block)
16
- Nimbu::Builder.new('Themes::Snippets', current_options.merge(options), &block)
15
+ def snippets(options = {}, &block)
16
+ Nimbu::Builder.new("Themes::Snippets", current_options.merge(options), &block)
17
17
  end
18
18
 
19
- def assets(options={}, &block)
20
- Nimbu::Builder.new('Themes::Assets', current_options.merge(options), &block)
19
+ def assets(options = {}, &block)
20
+ Nimbu::Builder.new("Themes::Assets", current_options.merge(options), &block)
21
21
  end
22
22
 
23
- def list(*args)
23
+ def list(*args, &block)
24
24
  arguments(args)
25
25
 
26
26
  response = get_request("/themes", arguments.params)
27
27
  return response unless block_given?
28
- response.each { |el| yield el }
28
+ response.each(&block)
29
29
  end
30
- alias :all :list
30
+ alias_method :all, :list
31
31
 
32
32
  def get(*args)
33
- arguments(args, :required => [:theme_id])
33
+ arguments(args, required: [:theme_id])
34
34
 
35
35
  get_request("/themes/#{theme_id}", arguments.params)
36
36
  end
37
- alias :find :get
38
-
39
-
37
+ alias_method :find, :get
40
38
  end # Themes
41
39
  end # Endpoints
42
40
  end # Nimbu
@@ -1,23 +1,24 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  module Nimbu
4
5
  module Endpoints
5
6
  class Translations < Endpoint
6
- def list(*args)
7
+ def list(*args, &block)
7
8
  arguments(args)
8
9
 
9
10
  response = get_request("/translations", arguments.params)
10
11
  return response unless block_given?
11
- response.each { |el| yield el }
12
+ response.each(&block)
12
13
  end
13
- alias :all :list
14
+ alias_method :all, :list
14
15
 
15
16
  def get(*args)
16
- arguments(args, :required => [:translation_id])
17
+ arguments(args, required: [:translation_id])
17
18
 
18
19
  get_request("/translations/#{translation_id}", arguments.params)
19
20
  end
20
- alias :find :get
21
+ alias_method :find, :get
21
22
 
22
23
  def count(*args)
23
24
  arguments(args)
@@ -32,19 +33,18 @@ module Nimbu
32
33
  end
33
34
 
34
35
  def update(*args)
35
- arguments(args, :required => [:translation_id])
36
+ arguments(args, required: [:translation_id])
36
37
 
37
38
  patch_request("/translations/#{translation_id}", arguments.params)
38
39
  end
39
- alias :edit :update
40
+ alias_method :edit, :update
40
41
 
41
42
  def delete(*args)
42
- arguments(args, :required => [:translation_id])
43
+ arguments(args, required: [:translation_id])
43
44
 
44
45
  delete_request("/translations/#{translation_id}", arguments.params)
45
46
  end
46
- alias :remove :delete
47
-
47
+ alias_method :remove, :delete
48
48
  end # Translations
49
49
  end # Endpoints
50
50
  end # Nimbu
@@ -0,0 +1,50 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: true
3
+
4
+ module Nimbu
5
+ module Endpoints
6
+ class Uploads < Endpoint
7
+ def list(*args, &block)
8
+ arguments(args)
9
+
10
+ response = get_request("/uploads", arguments.params)
11
+ return response unless block_given?
12
+ response.each(&block)
13
+ end
14
+ alias_method :all, :list
15
+
16
+ def get(*args)
17
+ arguments(args, required: [:upload_id])
18
+
19
+ get_request("/uploads/#{upload_id}", arguments.params)
20
+ end
21
+ alias_method :find, :get
22
+
23
+ def count(*args)
24
+ arguments(args)
25
+
26
+ get_request("/uploads/count", arguments.params)
27
+ end
28
+
29
+ def create(*args)
30
+ arguments(args)
31
+
32
+ post_request("/uploads", arguments.params)
33
+ end
34
+
35
+ def update(*args)
36
+ arguments(args, required: [:upload_id])
37
+
38
+ patch_request("/uploads/#{upload_id}", arguments.params)
39
+ end
40
+ alias_method :edit, :update
41
+
42
+ def delete(*args)
43
+ arguments(args, required: [:upload_id])
44
+
45
+ delete_request("/uploads/#{upload_id}", arguments.params)
46
+ end
47
+ alias_method :remove, :delete
48
+ end # Uploads
49
+ end # Endpoints
50
+ end # Nimbu
@@ -1,22 +1,21 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  module Nimbu
4
5
  module Endpoints
5
6
  class Users < Endpoint
6
-
7
7
  def me(*args)
8
8
  require_authentication
9
9
 
10
10
  get_request("/user")
11
11
  end
12
- alias :whoami :me
12
+ alias_method :whoami, :me
13
13
 
14
14
  private
15
15
 
16
16
  def require_authentication
17
- raise ArgumentError, 'You need to be authenticated to access the sites' unless authenticated?
17
+ raise ArgumentError, "You need to be authenticated to access the sites" unless authenticated?
18
18
  end
19
-
20
19
  end # Authorizations
21
20
  end # Endpoints
22
21
  end # Nimbu
@@ -1,26 +1,24 @@
1
1
  # encoding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
4
  module Nimbu
4
5
  module Endpoints
5
6
  class Videos < Endpoint
6
-
7
- def list(*args)
7
+ def list(*args, &block)
8
8
  arguments(args)
9
9
 
10
10
  response = get_request("/videos", arguments.params)
11
11
  return response unless block_given?
12
- response.each { |el| yield el }
12
+ response.each(&block)
13
13
  end
14
- alias :all :list
14
+ alias_method :all, :list
15
15
 
16
16
  def get(*args)
17
- arguments(args, :required => [:video_id])
17
+ arguments(args, required: [:video_id])
18
18
 
19
19
  get_request("/videos/#{video_id}", arguments.params)
20
20
  end
21
- alias :find :get
22
-
23
-
21
+ alias_method :find, :get
24
22
  end # Authorizations
25
23
  end # Endpoints
26
24
  end # Nimbu