Sha256: 102b1e5ae5e5b83ef35b09cf23161098ef6e0cacdc5b0c001c27de889ed79fe8

Contents?: true

Size: 1.41 KB

Versions: 6

Compression:

Stored size: 1.41 KB

Contents

=begin
#Web API Swagger specification

#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: 1.0

Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.3.0-SNAPSHOT

=end

require 'spec_helper'
require 'json'

# Unit tests for AsposeCellsCloud::OAuthApi
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
# Please update as you see appropriate
describe 'OAuthApi' do
  before do
    # run before each test
	@configure = AsposeCellsCloud::Configuration.new
	@configure.base_path = ""
	@client = AsposeCellsCloud::ApiClient.new(@configure)
    @instance = AsposeCellsCloud::CellsApi.new(@client)
  end

  after do
    # run after each test
  end

  # unit tests for o_auth_post
  # Get Access token
  # 
  # @param grant_type Grant Type
  # @param client_id App SID
  # @param client_secret App Key
  # @param [Hash] opts the optional parameters
  # @return [AccessTokenResponse]
  describe 'o_auth_post test' do
    it "should work" do
      grant_type = $grant_type
      client_id = $client_id
      client_secret = $client_secret
      $access_token = @instance.o_auth_post(grant_type,client_id,client_secret).access_token

      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
aspose_cells_cloud-20.6 spec/api/o_auth_api_spec.rb
aspose_cells_cloud-20.4 spec/api/o_auth_api_spec.rb
aspose_cells_cloud-20.2 spec/api/o_auth_api_spec.rb
aspose_cells_cloud-20.1 spec/api/o_auth_api_spec.rb
aspose_cells_cloud-19.10 spec/api/o_auth_api_spec.rb
aspose_cells_cloud-19.9 spec/api/o_auth_api_spec.rb