appmarketapi-rest 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +126 -0
- data/Rakefile +8 -0
- data/appmarketapi-rest.gemspec +45 -0
- data/docs/AppMarketAPIApi.md +388 -0
- data/docs/AppmarketapiApplication.md +22 -0
- data/docs/AppmarketapiApplicationCategories.md +8 -0
- data/docs/AppmarketapiApplicationFlowImages.md +8 -0
- data/docs/AppmarketapiApplicationIcon.md +8 -0
- data/docs/AppmarketapiApplicationMode.md +7 -0
- data/docs/AppmarketapiApplicationPromotion.md +8 -0
- data/docs/AppmarketapiApplicationSupportedPlatforms.md +8 -0
- data/docs/AppmarketapiApplicationTestUsers.md +8 -0
- data/docs/AppmarketapiAuthorizeApplicationRequest.md +11 -0
- data/docs/AppmarketapiAuthorizeApplicationResponse.md +8 -0
- data/docs/AppmarketapiCategory.md +8 -0
- data/docs/AppmarketapiCreateApplicationRequest.md +9 -0
- data/docs/AppmarketapiCreateApplicationResponse.md +9 -0
- data/docs/AppmarketapiCreateDeveloperRequest.md +11 -0
- data/docs/AppmarketapiCreateDeveloperResponse.md +11 -0
- data/docs/AppmarketapiCurrentApplicationMode.md +8 -0
- data/docs/AppmarketapiDeauthorizeApplicationRequest.md +10 -0
- data/docs/AppmarketapiDeauthorizeApplicationResponse.md +7 -0
- data/docs/AppmarketapiDeveloper.md +10 -0
- data/docs/AppmarketapiExtendedApplication.md +9 -0
- data/docs/AppmarketapiFlowImage.md +9 -0
- data/docs/AppmarketapiGetApplicationIdResponse.md +8 -0
- data/docs/AppmarketapiGetApplicationResponse.md +9 -0
- data/docs/AppmarketapiGetApplicationsResponse.md +8 -0
- data/docs/AppmarketapiPlatform.md +8 -0
- data/docs/AppmarketapiSectionError.md +9 -0
- data/docs/AppmarketapiUpdateApplicationMetadata.md +14 -0
- data/docs/AppmarketapiUpdateApplicationRequest.md +16 -0
- data/docs/AppmarketapiUpdateApplicationResponse.md +17 -0
- data/docs/AppmarketapiUser.md +9 -0
- data/git_push.sh +55 -0
- data/lib/appmarketapi-rest.rb +70 -0
- data/lib/appmarketapi-rest/api/app_market_api_api.rb +450 -0
- data/lib/appmarketapi-rest/api_client.rb +388 -0
- data/lib/appmarketapi-rest/api_error.rb +38 -0
- data/lib/appmarketapi-rest/configuration.rb +202 -0
- data/lib/appmarketapi-rest/models/appmarketapi_application.rb +317 -0
- data/lib/appmarketapi-rest/models/appmarketapi_application_categories.rb +185 -0
- data/lib/appmarketapi-rest/models/appmarketapi_application_flow_images.rb +185 -0
- data/lib/appmarketapi-rest/models/appmarketapi_application_icon.rb +183 -0
- data/lib/appmarketapi-rest/models/appmarketapi_application_mode.rb +32 -0
- data/lib/appmarketapi-rest/models/appmarketapi_application_promotion.rb +183 -0
- data/lib/appmarketapi-rest/models/appmarketapi_application_supported_platforms.rb +185 -0
- data/lib/appmarketapi-rest/models/appmarketapi_application_test_users.rb +185 -0
- data/lib/appmarketapi-rest/models/appmarketapi_authorize_application_request.rb +210 -0
- data/lib/appmarketapi-rest/models/appmarketapi_authorize_application_response.rb +183 -0
- data/lib/appmarketapi-rest/models/appmarketapi_category.rb +183 -0
- data/lib/appmarketapi-rest/models/appmarketapi_create_application_request.rb +192 -0
- data/lib/appmarketapi-rest/models/appmarketapi_create_application_response.rb +192 -0
- data/lib/appmarketapi-rest/models/appmarketapi_create_developer_request.rb +210 -0
- data/lib/appmarketapi-rest/models/appmarketapi_create_developer_response.rb +210 -0
- data/lib/appmarketapi-rest/models/appmarketapi_current_application_mode.rb +183 -0
- data/lib/appmarketapi-rest/models/appmarketapi_deauthorize_application_request.rb +201 -0
- data/lib/appmarketapi-rest/models/appmarketapi_deauthorize_application_response.rb +174 -0
- data/lib/appmarketapi-rest/models/appmarketapi_developer.rb +201 -0
- data/lib/appmarketapi-rest/models/appmarketapi_extended_application.rb +192 -0
- data/lib/appmarketapi-rest/models/appmarketapi_flow_image.rb +192 -0
- data/lib/appmarketapi-rest/models/appmarketapi_get_application_id_response.rb +183 -0
- data/lib/appmarketapi-rest/models/appmarketapi_get_application_response.rb +192 -0
- data/lib/appmarketapi-rest/models/appmarketapi_get_applications_response.rb +185 -0
- data/lib/appmarketapi-rest/models/appmarketapi_platform.rb +183 -0
- data/lib/appmarketapi-rest/models/appmarketapi_section_error.rb +192 -0
- data/lib/appmarketapi-rest/models/appmarketapi_update_application_metadata.rb +237 -0
- data/lib/appmarketapi-rest/models/appmarketapi_update_application_request.rb +255 -0
- data/lib/appmarketapi-rest/models/appmarketapi_update_application_response.rb +266 -0
- data/lib/appmarketapi-rest/models/appmarketapi_user.rb +194 -0
- data/lib/appmarketapi-rest/version.rb +15 -0
- data/spec/api/app_market_api_api_spec.rb +122 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/appmarketapi_application_categories_spec.rb +41 -0
- data/spec/models/appmarketapi_application_flow_images_spec.rb +41 -0
- data/spec/models/appmarketapi_application_icon_spec.rb +41 -0
- data/spec/models/appmarketapi_application_mode_spec.rb +35 -0
- data/spec/models/appmarketapi_application_promotion_spec.rb +41 -0
- data/spec/models/appmarketapi_application_spec.rb +125 -0
- data/spec/models/appmarketapi_application_supported_platforms_spec.rb +41 -0
- data/spec/models/appmarketapi_application_test_users_spec.rb +41 -0
- data/spec/models/appmarketapi_authorize_application_request_spec.rb +59 -0
- data/spec/models/appmarketapi_authorize_application_response_spec.rb +41 -0
- data/spec/models/appmarketapi_category_spec.rb +41 -0
- data/spec/models/appmarketapi_create_application_request_spec.rb +47 -0
- data/spec/models/appmarketapi_create_application_response_spec.rb +47 -0
- data/spec/models/appmarketapi_create_developer_request_spec.rb +59 -0
- data/spec/models/appmarketapi_create_developer_response_spec.rb +59 -0
- data/spec/models/appmarketapi_current_application_mode_spec.rb +41 -0
- data/spec/models/appmarketapi_deauthorize_application_request_spec.rb +53 -0
- data/spec/models/appmarketapi_deauthorize_application_response_spec.rb +35 -0
- data/spec/models/appmarketapi_developer_spec.rb +53 -0
- data/spec/models/appmarketapi_extended_application_spec.rb +47 -0
- data/spec/models/appmarketapi_flow_image_spec.rb +47 -0
- data/spec/models/appmarketapi_get_application_id_response_spec.rb +41 -0
- data/spec/models/appmarketapi_get_application_response_spec.rb +47 -0
- data/spec/models/appmarketapi_get_applications_response_spec.rb +41 -0
- data/spec/models/appmarketapi_platform_spec.rb +41 -0
- data/spec/models/appmarketapi_section_error_spec.rb +47 -0
- data/spec/models/appmarketapi_update_application_metadata_spec.rb +77 -0
- data/spec/models/appmarketapi_update_application_request_spec.rb +89 -0
- data/spec/models/appmarketapi_update_application_response_spec.rb +95 -0
- data/spec/models/appmarketapi_user_spec.rb +47 -0
- data/spec/spec_helper.rb +111 -0
- metadata +364 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 52567492831ffb1d9e594617470feb16b75acfe4
|
4
|
+
data.tar.gz: be68158fb5a445db325f2b958a94739ac5771027
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 82cb24caa078f7d94b1bdf89b3e2feeb3577fbd1b8923c150415467f20cf6bf2a62b61d8fac437fd11e489e1d79804632f90b8723a23657d25543440978d1e09
|
7
|
+
data.tar.gz: 9806012819c9ef1d1acdacd09764d92271063e79764d111e7466f80e0282eb5ee16bfab598dd501ad1050a689834396ed9489e3f2d55788bfe2d2f4fa4d64020
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,126 @@
|
|
1
|
+
# appmarketapi-rest
|
2
|
+
|
3
|
+
Appmarketapi - the Ruby gem for the appmarketapi.proto
|
4
|
+
|
5
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
6
|
+
|
7
|
+
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
|
+
|
9
|
+
- API version: version not set
|
10
|
+
- Package version: 0.0.1
|
11
|
+
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
|
+
|
13
|
+
## Installation
|
14
|
+
|
15
|
+
### Build a gem
|
16
|
+
|
17
|
+
To build the Ruby code into a gem:
|
18
|
+
|
19
|
+
```shell
|
20
|
+
gem build appmarketapi-rest.gemspec
|
21
|
+
```
|
22
|
+
|
23
|
+
Then either install the gem locally:
|
24
|
+
|
25
|
+
```shell
|
26
|
+
gem install ./appmarketapi-rest-0.0.1.gem
|
27
|
+
```
|
28
|
+
(for development, run `gem install --dev ./appmarketapi-rest-0.0.1.gem` to install the development dependencies)
|
29
|
+
|
30
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
|
+
|
32
|
+
Finally add this to the Gemfile:
|
33
|
+
|
34
|
+
gem 'appmarketapi-rest', '~> 0.0.1'
|
35
|
+
|
36
|
+
### Install from Git
|
37
|
+
|
38
|
+
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
39
|
+
|
40
|
+
gem 'appmarketapi-rest', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
41
|
+
|
42
|
+
### Include the Ruby code directly
|
43
|
+
|
44
|
+
Include the Ruby code directly using `-I` as follows:
|
45
|
+
|
46
|
+
```shell
|
47
|
+
ruby -Ilib script.rb
|
48
|
+
```
|
49
|
+
|
50
|
+
## Getting Started
|
51
|
+
|
52
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
53
|
+
```ruby
|
54
|
+
# Load the gem
|
55
|
+
require 'appmarketapi-rest'
|
56
|
+
|
57
|
+
api_instance = Appmarketapi::AppMarketAPIApi.new
|
58
|
+
|
59
|
+
application_id = 'application_id_example' # String |
|
60
|
+
|
61
|
+
body = Appmarketapi::AppmarketapiAuthorizeApplicationRequest.new # AppmarketapiAuthorizeApplicationRequest |
|
62
|
+
|
63
|
+
|
64
|
+
begin
|
65
|
+
result = api_instance.authorize_application(application_id, body)
|
66
|
+
p result
|
67
|
+
rescue Appmarketapi::ApiError => e
|
68
|
+
puts "Exception when calling AppMarketAPIApi->authorize_application: #{e}"
|
69
|
+
end
|
70
|
+
|
71
|
+
```
|
72
|
+
|
73
|
+
## Documentation for API Endpoints
|
74
|
+
|
75
|
+
All URIs are relative to *http://localhost*
|
76
|
+
|
77
|
+
Class | Method | HTTP request | Description
|
78
|
+
------------ | ------------- | ------------- | -------------
|
79
|
+
*Appmarketapi::AppMarketAPIApi* | [**authorize_application**](docs/AppMarketAPIApi.md#authorize_application) | **POST** /v1/applications/{application_id}/authorize |
|
80
|
+
*Appmarketapi::AppMarketAPIApi* | [**create_application**](docs/AppMarketAPIApi.md#create_application) | **POST** /v1/applications |
|
81
|
+
*Appmarketapi::AppMarketAPIApi* | [**create_developer**](docs/AppMarketAPIApi.md#create_developer) | **POST** /v1/developers |
|
82
|
+
*Appmarketapi::AppMarketAPIApi* | [**deauthorize_application**](docs/AppMarketAPIApi.md#deauthorize_application) | **POST** /v1/applications/{application_id}/deauthorize |
|
83
|
+
*Appmarketapi::AppMarketAPIApi* | [**get_application**](docs/AppMarketAPIApi.md#get_application) | **GET** /v1/applications/{application_id} |
|
84
|
+
*Appmarketapi::AppMarketAPIApi* | [**get_application_id**](docs/AppMarketAPIApi.md#get_application_id) | **GET** /v1/application/oauth2/{access_token} |
|
85
|
+
*Appmarketapi::AppMarketAPIApi* | [**get_applications**](docs/AppMarketAPIApi.md#get_applications) | **GET** /v1/applications |
|
86
|
+
*Appmarketapi::AppMarketAPIApi* | [**update_application**](docs/AppMarketAPIApi.md#update_application) | **PATCH** /v1/applications/{application_id} |
|
87
|
+
|
88
|
+
|
89
|
+
## Documentation for Models
|
90
|
+
|
91
|
+
- [Appmarketapi::AppmarketapiApplication](docs/AppmarketapiApplication.md)
|
92
|
+
- [Appmarketapi::AppmarketapiApplicationCategories](docs/AppmarketapiApplicationCategories.md)
|
93
|
+
- [Appmarketapi::AppmarketapiApplicationFlowImages](docs/AppmarketapiApplicationFlowImages.md)
|
94
|
+
- [Appmarketapi::AppmarketapiApplicationIcon](docs/AppmarketapiApplicationIcon.md)
|
95
|
+
- [Appmarketapi::AppmarketapiApplicationMode](docs/AppmarketapiApplicationMode.md)
|
96
|
+
- [Appmarketapi::AppmarketapiApplicationPromotion](docs/AppmarketapiApplicationPromotion.md)
|
97
|
+
- [Appmarketapi::AppmarketapiApplicationSupportedPlatforms](docs/AppmarketapiApplicationSupportedPlatforms.md)
|
98
|
+
- [Appmarketapi::AppmarketapiApplicationTestUsers](docs/AppmarketapiApplicationTestUsers.md)
|
99
|
+
- [Appmarketapi::AppmarketapiAuthorizeApplicationRequest](docs/AppmarketapiAuthorizeApplicationRequest.md)
|
100
|
+
- [Appmarketapi::AppmarketapiAuthorizeApplicationResponse](docs/AppmarketapiAuthorizeApplicationResponse.md)
|
101
|
+
- [Appmarketapi::AppmarketapiCategory](docs/AppmarketapiCategory.md)
|
102
|
+
- [Appmarketapi::AppmarketapiCreateApplicationRequest](docs/AppmarketapiCreateApplicationRequest.md)
|
103
|
+
- [Appmarketapi::AppmarketapiCreateApplicationResponse](docs/AppmarketapiCreateApplicationResponse.md)
|
104
|
+
- [Appmarketapi::AppmarketapiCreateDeveloperRequest](docs/AppmarketapiCreateDeveloperRequest.md)
|
105
|
+
- [Appmarketapi::AppmarketapiCreateDeveloperResponse](docs/AppmarketapiCreateDeveloperResponse.md)
|
106
|
+
- [Appmarketapi::AppmarketapiCurrentApplicationMode](docs/AppmarketapiCurrentApplicationMode.md)
|
107
|
+
- [Appmarketapi::AppmarketapiDeauthorizeApplicationRequest](docs/AppmarketapiDeauthorizeApplicationRequest.md)
|
108
|
+
- [Appmarketapi::AppmarketapiDeauthorizeApplicationResponse](docs/AppmarketapiDeauthorizeApplicationResponse.md)
|
109
|
+
- [Appmarketapi::AppmarketapiDeveloper](docs/AppmarketapiDeveloper.md)
|
110
|
+
- [Appmarketapi::AppmarketapiExtendedApplication](docs/AppmarketapiExtendedApplication.md)
|
111
|
+
- [Appmarketapi::AppmarketapiFlowImage](docs/AppmarketapiFlowImage.md)
|
112
|
+
- [Appmarketapi::AppmarketapiGetApplicationIdResponse](docs/AppmarketapiGetApplicationIdResponse.md)
|
113
|
+
- [Appmarketapi::AppmarketapiGetApplicationResponse](docs/AppmarketapiGetApplicationResponse.md)
|
114
|
+
- [Appmarketapi::AppmarketapiGetApplicationsResponse](docs/AppmarketapiGetApplicationsResponse.md)
|
115
|
+
- [Appmarketapi::AppmarketapiPlatform](docs/AppmarketapiPlatform.md)
|
116
|
+
- [Appmarketapi::AppmarketapiSectionError](docs/AppmarketapiSectionError.md)
|
117
|
+
- [Appmarketapi::AppmarketapiUpdateApplicationMetadata](docs/AppmarketapiUpdateApplicationMetadata.md)
|
118
|
+
- [Appmarketapi::AppmarketapiUpdateApplicationRequest](docs/AppmarketapiUpdateApplicationRequest.md)
|
119
|
+
- [Appmarketapi::AppmarketapiUpdateApplicationResponse](docs/AppmarketapiUpdateApplicationResponse.md)
|
120
|
+
- [Appmarketapi::AppmarketapiUser](docs/AppmarketapiUser.md)
|
121
|
+
|
122
|
+
|
123
|
+
## Documentation for Authorization
|
124
|
+
|
125
|
+
All endpoints do not require authorization.
|
126
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
=begin
|
4
|
+
#appmarketapi.proto
|
5
|
+
|
6
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
7
|
+
|
8
|
+
OpenAPI spec version: version not set
|
9
|
+
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
+
Swagger Codegen version: 2.4.0-SNAPSHOT
|
12
|
+
|
13
|
+
=end
|
14
|
+
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
16
|
+
require "appmarketapi-rest/version"
|
17
|
+
|
18
|
+
Gem::Specification.new do |s|
|
19
|
+
s.name = "appmarketapi-rest"
|
20
|
+
s.version = Appmarketapi::VERSION
|
21
|
+
s.platform = Gem::Platform::RUBY
|
22
|
+
s.authors = ["Vladislav Shub"]
|
23
|
+
s.email = ["vlad@yotpo.com"]
|
24
|
+
s.homepage = "https://github.com/swagger-api/swagger-codegen"
|
25
|
+
s.summary = "appmarketapi.proto Ruby Gem"
|
26
|
+
s.description = "No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)"
|
27
|
+
s.license = "Unlicense"
|
28
|
+
s.required_ruby_version = ">= 1.9"
|
29
|
+
|
30
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
+
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
|
+
|
33
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
34
|
+
s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
|
35
|
+
s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
|
36
|
+
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
|
37
|
+
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
|
38
|
+
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
39
|
+
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
|
40
|
+
|
41
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
42
|
+
s.test_files = `find spec/*`.split("\n")
|
43
|
+
s.executables = []
|
44
|
+
s.require_paths = ["lib"]
|
45
|
+
end
|
@@ -0,0 +1,388 @@
|
|
1
|
+
# Appmarketapi::AppMarketAPIApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**authorize_application**](AppMarketAPIApi.md#authorize_application) | **POST** /v1/applications/{application_id}/authorize |
|
8
|
+
[**create_application**](AppMarketAPIApi.md#create_application) | **POST** /v1/applications |
|
9
|
+
[**create_developer**](AppMarketAPIApi.md#create_developer) | **POST** /v1/developers |
|
10
|
+
[**deauthorize_application**](AppMarketAPIApi.md#deauthorize_application) | **POST** /v1/applications/{application_id}/deauthorize |
|
11
|
+
[**get_application**](AppMarketAPIApi.md#get_application) | **GET** /v1/applications/{application_id} |
|
12
|
+
[**get_application_id**](AppMarketAPIApi.md#get_application_id) | **GET** /v1/application/oauth2/{access_token} |
|
13
|
+
[**get_applications**](AppMarketAPIApi.md#get_applications) | **GET** /v1/applications |
|
14
|
+
[**update_application**](AppMarketAPIApi.md#update_application) | **PATCH** /v1/applications/{application_id} |
|
15
|
+
|
16
|
+
|
17
|
+
# **authorize_application**
|
18
|
+
> AppmarketapiAuthorizeApplicationResponse authorize_application(application_id, body)
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
### Example
|
23
|
+
```ruby
|
24
|
+
# load the gem
|
25
|
+
require 'appmarketapi-rest'
|
26
|
+
|
27
|
+
api_instance = Appmarketapi::AppMarketAPIApi.new
|
28
|
+
|
29
|
+
application_id = 'application_id_example' # String |
|
30
|
+
|
31
|
+
body = Appmarketapi::AppmarketapiAuthorizeApplicationRequest.new # AppmarketapiAuthorizeApplicationRequest |
|
32
|
+
|
33
|
+
|
34
|
+
begin
|
35
|
+
result = api_instance.authorize_application(application_id, body)
|
36
|
+
p result
|
37
|
+
rescue Appmarketapi::ApiError => e
|
38
|
+
puts "Exception when calling AppMarketAPIApi->authorize_application: #{e}"
|
39
|
+
end
|
40
|
+
```
|
41
|
+
|
42
|
+
### Parameters
|
43
|
+
|
44
|
+
Name | Type | Description | Notes
|
45
|
+
------------- | ------------- | ------------- | -------------
|
46
|
+
**application_id** | **String**| |
|
47
|
+
**body** | [**AppmarketapiAuthorizeApplicationRequest**](AppmarketapiAuthorizeApplicationRequest.md)| |
|
48
|
+
|
49
|
+
### Return type
|
50
|
+
|
51
|
+
[**AppmarketapiAuthorizeApplicationResponse**](AppmarketapiAuthorizeApplicationResponse.md)
|
52
|
+
|
53
|
+
### Authorization
|
54
|
+
|
55
|
+
No authorization required
|
56
|
+
|
57
|
+
### HTTP request headers
|
58
|
+
|
59
|
+
- **Content-Type**: application/json
|
60
|
+
- **Accept**: application/json
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
# **create_application**
|
65
|
+
> AppmarketapiCreateApplicationResponse create_application(body)
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
### Example
|
70
|
+
```ruby
|
71
|
+
# load the gem
|
72
|
+
require 'appmarketapi-rest'
|
73
|
+
|
74
|
+
api_instance = Appmarketapi::AppMarketAPIApi.new
|
75
|
+
|
76
|
+
body = Appmarketapi::AppmarketapiCreateApplicationRequest.new # AppmarketapiCreateApplicationRequest |
|
77
|
+
|
78
|
+
|
79
|
+
begin
|
80
|
+
result = api_instance.create_application(body)
|
81
|
+
p result
|
82
|
+
rescue Appmarketapi::ApiError => e
|
83
|
+
puts "Exception when calling AppMarketAPIApi->create_application: #{e}"
|
84
|
+
end
|
85
|
+
```
|
86
|
+
|
87
|
+
### Parameters
|
88
|
+
|
89
|
+
Name | Type | Description | Notes
|
90
|
+
------------- | ------------- | ------------- | -------------
|
91
|
+
**body** | [**AppmarketapiCreateApplicationRequest**](AppmarketapiCreateApplicationRequest.md)| |
|
92
|
+
|
93
|
+
### Return type
|
94
|
+
|
95
|
+
[**AppmarketapiCreateApplicationResponse**](AppmarketapiCreateApplicationResponse.md)
|
96
|
+
|
97
|
+
### Authorization
|
98
|
+
|
99
|
+
No authorization required
|
100
|
+
|
101
|
+
### HTTP request headers
|
102
|
+
|
103
|
+
- **Content-Type**: application/json
|
104
|
+
- **Accept**: application/json
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
# **create_developer**
|
109
|
+
> AppmarketapiCreateDeveloperResponse create_developer(body)
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
### Example
|
114
|
+
```ruby
|
115
|
+
# load the gem
|
116
|
+
require 'appmarketapi-rest'
|
117
|
+
|
118
|
+
api_instance = Appmarketapi::AppMarketAPIApi.new
|
119
|
+
|
120
|
+
body = Appmarketapi::AppmarketapiCreateDeveloperRequest.new # AppmarketapiCreateDeveloperRequest |
|
121
|
+
|
122
|
+
|
123
|
+
begin
|
124
|
+
result = api_instance.create_developer(body)
|
125
|
+
p result
|
126
|
+
rescue Appmarketapi::ApiError => e
|
127
|
+
puts "Exception when calling AppMarketAPIApi->create_developer: #{e}"
|
128
|
+
end
|
129
|
+
```
|
130
|
+
|
131
|
+
### Parameters
|
132
|
+
|
133
|
+
Name | Type | Description | Notes
|
134
|
+
------------- | ------------- | ------------- | -------------
|
135
|
+
**body** | [**AppmarketapiCreateDeveloperRequest**](AppmarketapiCreateDeveloperRequest.md)| |
|
136
|
+
|
137
|
+
### Return type
|
138
|
+
|
139
|
+
[**AppmarketapiCreateDeveloperResponse**](AppmarketapiCreateDeveloperResponse.md)
|
140
|
+
|
141
|
+
### Authorization
|
142
|
+
|
143
|
+
No authorization required
|
144
|
+
|
145
|
+
### HTTP request headers
|
146
|
+
|
147
|
+
- **Content-Type**: application/json
|
148
|
+
- **Accept**: application/json
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
# **deauthorize_application**
|
153
|
+
> AppmarketapiDeauthorizeApplicationResponse deauthorize_application(application_id, body)
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
### Example
|
158
|
+
```ruby
|
159
|
+
# load the gem
|
160
|
+
require 'appmarketapi-rest'
|
161
|
+
|
162
|
+
api_instance = Appmarketapi::AppMarketAPIApi.new
|
163
|
+
|
164
|
+
application_id = 'application_id_example' # String |
|
165
|
+
|
166
|
+
body = Appmarketapi::AppmarketapiDeauthorizeApplicationRequest.new # AppmarketapiDeauthorizeApplicationRequest |
|
167
|
+
|
168
|
+
|
169
|
+
begin
|
170
|
+
result = api_instance.deauthorize_application(application_id, body)
|
171
|
+
p result
|
172
|
+
rescue Appmarketapi::ApiError => e
|
173
|
+
puts "Exception when calling AppMarketAPIApi->deauthorize_application: #{e}"
|
174
|
+
end
|
175
|
+
```
|
176
|
+
|
177
|
+
### Parameters
|
178
|
+
|
179
|
+
Name | Type | Description | Notes
|
180
|
+
------------- | ------------- | ------------- | -------------
|
181
|
+
**application_id** | **String**| |
|
182
|
+
**body** | [**AppmarketapiDeauthorizeApplicationRequest**](AppmarketapiDeauthorizeApplicationRequest.md)| |
|
183
|
+
|
184
|
+
### Return type
|
185
|
+
|
186
|
+
[**AppmarketapiDeauthorizeApplicationResponse**](AppmarketapiDeauthorizeApplicationResponse.md)
|
187
|
+
|
188
|
+
### Authorization
|
189
|
+
|
190
|
+
No authorization required
|
191
|
+
|
192
|
+
### HTTP request headers
|
193
|
+
|
194
|
+
- **Content-Type**: application/json
|
195
|
+
- **Accept**: application/json
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
# **get_application**
|
200
|
+
> AppmarketapiGetApplicationResponse get_application(application_id, opts)
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
### Example
|
205
|
+
```ruby
|
206
|
+
# load the gem
|
207
|
+
require 'appmarketapi-rest'
|
208
|
+
|
209
|
+
api_instance = Appmarketapi::AppMarketAPIApi.new
|
210
|
+
|
211
|
+
application_id = 'application_id_example' # String |
|
212
|
+
|
213
|
+
opts = {
|
214
|
+
user_id: 'user_id_example', # String |
|
215
|
+
user_token: 'user_token_example' # String |
|
216
|
+
}
|
217
|
+
|
218
|
+
begin
|
219
|
+
result = api_instance.get_application(application_id, opts)
|
220
|
+
p result
|
221
|
+
rescue Appmarketapi::ApiError => e
|
222
|
+
puts "Exception when calling AppMarketAPIApi->get_application: #{e}"
|
223
|
+
end
|
224
|
+
```
|
225
|
+
|
226
|
+
### Parameters
|
227
|
+
|
228
|
+
Name | Type | Description | Notes
|
229
|
+
------------- | ------------- | ------------- | -------------
|
230
|
+
**application_id** | **String**| |
|
231
|
+
**user_id** | **String**| | [optional]
|
232
|
+
**user_token** | **String**| | [optional]
|
233
|
+
|
234
|
+
### Return type
|
235
|
+
|
236
|
+
[**AppmarketapiGetApplicationResponse**](AppmarketapiGetApplicationResponse.md)
|
237
|
+
|
238
|
+
### Authorization
|
239
|
+
|
240
|
+
No authorization required
|
241
|
+
|
242
|
+
### HTTP request headers
|
243
|
+
|
244
|
+
- **Content-Type**: application/json
|
245
|
+
- **Accept**: application/json
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
# **get_application_id**
|
250
|
+
> AppmarketapiGetApplicationIdResponse get_application_id(access_token)
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
### Example
|
255
|
+
```ruby
|
256
|
+
# load the gem
|
257
|
+
require 'appmarketapi-rest'
|
258
|
+
|
259
|
+
api_instance = Appmarketapi::AppMarketAPIApi.new
|
260
|
+
|
261
|
+
access_token = 'access_token_example' # String |
|
262
|
+
|
263
|
+
|
264
|
+
begin
|
265
|
+
result = api_instance.get_application_id(access_token)
|
266
|
+
p result
|
267
|
+
rescue Appmarketapi::ApiError => e
|
268
|
+
puts "Exception when calling AppMarketAPIApi->get_application_id: #{e}"
|
269
|
+
end
|
270
|
+
```
|
271
|
+
|
272
|
+
### Parameters
|
273
|
+
|
274
|
+
Name | Type | Description | Notes
|
275
|
+
------------- | ------------- | ------------- | -------------
|
276
|
+
**access_token** | **String**| |
|
277
|
+
|
278
|
+
### Return type
|
279
|
+
|
280
|
+
[**AppmarketapiGetApplicationIdResponse**](AppmarketapiGetApplicationIdResponse.md)
|
281
|
+
|
282
|
+
### Authorization
|
283
|
+
|
284
|
+
No authorization required
|
285
|
+
|
286
|
+
### HTTP request headers
|
287
|
+
|
288
|
+
- **Content-Type**: application/json
|
289
|
+
- **Accept**: application/json
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
# **get_applications**
|
294
|
+
> AppmarketapiGetApplicationsResponse get_applications(opts)
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
### Example
|
299
|
+
```ruby
|
300
|
+
# load the gem
|
301
|
+
require 'appmarketapi-rest'
|
302
|
+
|
303
|
+
api_instance = Appmarketapi::AppMarketAPIApi.new
|
304
|
+
|
305
|
+
opts = {
|
306
|
+
user_id: 'user_id_example', # String |
|
307
|
+
user_token: 'user_token_example', # String |
|
308
|
+
top_rated_limit: 56 # Integer |
|
309
|
+
}
|
310
|
+
|
311
|
+
begin
|
312
|
+
result = api_instance.get_applications(opts)
|
313
|
+
p result
|
314
|
+
rescue Appmarketapi::ApiError => e
|
315
|
+
puts "Exception when calling AppMarketAPIApi->get_applications: #{e}"
|
316
|
+
end
|
317
|
+
```
|
318
|
+
|
319
|
+
### Parameters
|
320
|
+
|
321
|
+
Name | Type | Description | Notes
|
322
|
+
------------- | ------------- | ------------- | -------------
|
323
|
+
**user_id** | **String**| | [optional]
|
324
|
+
**user_token** | **String**| | [optional]
|
325
|
+
**top_rated_limit** | **Integer**| | [optional]
|
326
|
+
|
327
|
+
### Return type
|
328
|
+
|
329
|
+
[**AppmarketapiGetApplicationsResponse**](AppmarketapiGetApplicationsResponse.md)
|
330
|
+
|
331
|
+
### Authorization
|
332
|
+
|
333
|
+
No authorization required
|
334
|
+
|
335
|
+
### HTTP request headers
|
336
|
+
|
337
|
+
- **Content-Type**: application/json
|
338
|
+
- **Accept**: application/json
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
# **update_application**
|
343
|
+
> AppmarketapiUpdateApplicationResponse update_application(application_id, body)
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
### Example
|
348
|
+
```ruby
|
349
|
+
# load the gem
|
350
|
+
require 'appmarketapi-rest'
|
351
|
+
|
352
|
+
api_instance = Appmarketapi::AppMarketAPIApi.new
|
353
|
+
|
354
|
+
application_id = 'application_id_example' # String |
|
355
|
+
|
356
|
+
body = Appmarketapi::AppmarketapiUpdateApplicationRequest.new # AppmarketapiUpdateApplicationRequest |
|
357
|
+
|
358
|
+
|
359
|
+
begin
|
360
|
+
result = api_instance.update_application(application_id, body)
|
361
|
+
p result
|
362
|
+
rescue Appmarketapi::ApiError => e
|
363
|
+
puts "Exception when calling AppMarketAPIApi->update_application: #{e}"
|
364
|
+
end
|
365
|
+
```
|
366
|
+
|
367
|
+
### Parameters
|
368
|
+
|
369
|
+
Name | Type | Description | Notes
|
370
|
+
------------- | ------------- | ------------- | -------------
|
371
|
+
**application_id** | **String**| |
|
372
|
+
**body** | [**AppmarketapiUpdateApplicationRequest**](AppmarketapiUpdateApplicationRequest.md)| |
|
373
|
+
|
374
|
+
### Return type
|
375
|
+
|
376
|
+
[**AppmarketapiUpdateApplicationResponse**](AppmarketapiUpdateApplicationResponse.md)
|
377
|
+
|
378
|
+
### Authorization
|
379
|
+
|
380
|
+
No authorization required
|
381
|
+
|
382
|
+
### HTTP request headers
|
383
|
+
|
384
|
+
- **Content-Type**: application/json
|
385
|
+
- **Accept**: application/json
|
386
|
+
|
387
|
+
|
388
|
+
|