Making requests with stripe-ruby
Learn how to make requests to the Stripe API using the stripe-ruby client library. You'll see how to format parameters and pass request body, query string params, and request headers. ### Presenter CJ Avilla - Developer Advocate at Stripe - https://twitter.com/cjav_dev ### Resources Official client library: https://github.com/stripe/stripe-ruby Code: https://github.com/stripe-samples/developer-office-hours/blob/master/2020-10-30-client-libraries/ruby/demo_requests.rb ## Table of contents 00:00 Overview 01:16 API reference 04:10 Create an object passing no params 04:48 Retrieve single object 05:52 Create an object with scalar values 07:23 Create an object with enum values 09:30 Create an object with nested hash 10:55 Create an object with a list of strings 12:22 Update an object with scalar values 14:00 Update an object with a list of nested hashes 15:33 Retrieve a list of objects 17:03 Retrieve a list filtered by scalar 18:40 Delete an object 19:10 Custom methods overview 20:12 Custom method demo 21:53 Nested service method overview 22:22 Nested service method demo 23:48 Request headers overview 24:50 Request headers demo 28:00 Conclusion ### Support If you have a question, please feel free to reach out to our support team at https://support.stripe.com/ or join us on Discord https://stripe.com/go/developer-chat. ### Updates Sign up to stay updated with developer news: https://go.stripe.global/dev-digest ### Feedback If you have any feedback about this or other episodes, let us know: https://forms.gle/VjNqzRhotM2snYo88. #Stripe #Payments
Learn how to make requests to the Stripe API using the stripe-ruby client library. You'll see how to format parameters and pass request body, query string params, and request headers. ### Presenter CJ Avilla - Developer Advocate at Stripe - https://twitter.com/cjav_dev ### Resources Official client library: https://github.com/stripe/stripe-ruby Code: https://github.com/stripe-samples/developer-office-hours/blob/master/2020-10-30-client-libraries/ruby/demo_requests.rb ## Table of contents 00:00 Overview 01:16 API reference 04:10 Create an object passing no params 04:48 Retrieve single object 05:52 Create an object with scalar values 07:23 Create an object with enum values 09:30 Create an object with nested hash 10:55 Create an object with a list of strings 12:22 Update an object with scalar values 14:00 Update an object with a list of nested hashes 15:33 Retrieve a list of objects 17:03 Retrieve a list filtered by scalar 18:40 Delete an object 19:10 Custom methods overview 20:12 Custom method demo 21:53 Nested service method overview 22:22 Nested service method demo 23:48 Request headers overview 24:50 Request headers demo 28:00 Conclusion ### Support If you have a question, please feel free to reach out to our support team at https://support.stripe.com/ or join us on Discord https://stripe.com/go/developer-chat. ### Updates Sign up to stay updated with developer news: https://go.stripe.global/dev-digest ### Feedback If you have any feedback about this or other episodes, let us know: https://forms.gle/VjNqzRhotM2snYo88. #Stripe #Payments