=begin #Pinterest REST API #Pinterest's REST API The version of the OpenAPI document: 5.3.0 Contact: pinterest-api@pinterest.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.4.0 =end require 'spec_helper' require 'json' # Unit tests for PinterestSdkClient::MediaApi # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe 'MediaApi' do before do # run before each test @api_instance = PinterestSdkClient::MediaApi.new end after do # run after each test end describe 'test an instance of MediaApi' do it 'should create an instance of MediaApi' do expect(@api_instance).to be_instance_of(PinterestSdkClient::MediaApi) end end # unit tests for media_create # Register media upload # Register your intent to upload media The response includes all of the information needed to upload the media to Pinterest. To upload the media, make an HTTP POST request (using <tt>curl</tt>, for example) to <tt>upload_url</tt> using the <tt>Content-Type</tt> header value. Send the media file's contents as the request's <tt>file</tt> parameter and also include all of the parameters from <tt>upload_parameters</tt>. <strong><a href='/docs/solutions/content-apps/#creatingvideopins'>Learn more</a></strong> about video Pin creation. # @param media_upload_request Create a media upload request # @param [Hash] opts the optional parameters # @return [MediaUpload] describe 'media_create test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for media_get # Get media upload details # Get details for a registered media upload, including its current status. <strong><a href='/docs/solutions/content-apps/#creatingvideopins'>Learn more</a></strong> about video Pin creation. # @param media_id Media identifier # @param [Hash] opts the optional parameters # @return [MediaUploadDetails] describe 'media_get test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for media_list # List media uploads # List media uploads filtered by given parameters. <strong><a href='/docs/solutions/content-apps/#creatingvideopins'>Learn more</a></strong> about video Pin creation. # @param [Hash] opts the optional parameters # @option opts [String] :bookmark Cursor used to fetch the next page of items # @option opts [Integer] :page_size Maximum number of items to include in a single page of the response. See documentation on <a href='/docs/api/v5/#tag/Pagination'>Pagination</a> for more information. # @return [Paginated] describe 'media_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end