All URIs are relative to https://api.bakuage.com:443
| Method | HTTP request | Description |
|---|---|---|
| create_sp_subscription | POST /sp_subscriptions | Create a new smartphone subscription. |
| list_sp_subscriptions | GET /sp_subscriptions | Get all accessable smartphone subscriptions. |
SpSubscription create_sp_subscription(service, opts)
Create a new smartphone subscription.
# load the gem
require 'aimastering'
# setup authorization
Aimastering.configure do |config|
# Configure API key authorization: bearer
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = Aimastering::SpSubscriptionApi.new
service = "service_example" # String | Service.
opts = {
receipt: "receipt_example" # String | Base64 encoded app store receipt. This parameter is effective only when the service is \"appstore\".
}
begin
#Create a new smartphone subscription.
result = api_instance.create_sp_subscription(service, opts)
p result
rescue Aimastering::ApiError => e
puts "Exception when calling SpSubscriptionApi->create_sp_subscription: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| service | String | Service. | |
| receipt | String | Base64 encoded app store receipt. This parameter is effective only when the service is "appstore". | [optional] |
- Content-Type: multipart/form-data
- Accept: application/json
Array<SpSubscription> list_sp_subscriptions
Get all accessable smartphone subscriptions.
# load the gem
require 'aimastering'
# setup authorization
Aimastering.configure do |config|
# Configure API key authorization: bearer
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = Aimastering::SpSubscriptionApi.new
begin
#Get all accessable smartphone subscriptions.
result = api_instance.list_sp_subscriptions
p result
rescue Aimastering::ApiError => e
puts "Exception when calling SpSubscriptionApi->list_sp_subscriptions: #{e}"
endThis endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json