钱袋子ASO API

ASO

check

排重接口


/v1/aso/check

Usage and SDK Samples

curl -X GET "http://aso.51qiandaizi.com/api/v1/aso/check?s_name=&app_id=&app_os=&idfa=&imei=&imsi=&ip="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ASOApi;

import java.io.File;
import java.util.*;

public class ASOApiExample {

    public static void main(String[] args) {
        
        ASOApi apiInstance = new ASOApi();
        String sName = sName_example; // String | 供应商识别码,用于区分不同供应商。由钱袋子分配
        Integer appId = 56; // Integer | app识别码,用于区分不同app。由钱袋子分配
        Integer appOs = 56; // Integer | app_os, 1:ANDROID, 2:IOS
        String ip = ip_example; // String | 用户设备的外网ip
        String requestId = requestId_example; // String | 当前请求唯一标示符(用UUID生成即可)
        String idfa = idfa_example; // String | idfa, 当app_os为IOS
        String imei = imei_example; // String | imei, 当app_os为ANDROID
        String imsi = imsi_example; // String | imsi,当app_os为ANDROID
        try {
            CheckResponse result = apiInstance.check(sName, appId, appOs, ip, requestId, idfa, imei, imsi);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ASOApi#check");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ASOApi;

public class ASOApiExample {

    public static void main(String[] args) {
        ASOApi apiInstance = new ASOApi();
        String sName = sName_example; // String | 供应商识别码,用于区分不同供应商。由钱袋子分配
        Integer appId = 56; // Integer | app识别码,用于区分不同app。由钱袋子分配
        Integer appOs = 56; // Integer | app_os, 1:ANDROID, 2:IOS
        String ip = ip_example; // String | 用户设备的外网ip
        String requestId = requestId_example; // String | 当前请求唯一标示符(用UUID生成即可)
        String idfa = idfa_example; // String | idfa, 当app_os为IOS
        String imei = imei_example; // String | imei, 当app_os为ANDROID
        String imsi = imsi_example; // String | imsi,当app_os为ANDROID
        try {
            CheckResponse result = apiInstance.check(sName, appId, appOs, ip, requestId, idfa, imei, imsi);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ASOApi#check");
            e.printStackTrace();
        }
    }
}
String *sName = sName_example; // 供应商识别码,用于区分不同供应商。由钱袋子分配
Integer *appId = 56; // app识别码,用于区分不同app。由钱袋子分配
Integer *appOs = 56; // app_os, 1:ANDROID, 2:IOS
String *ip = ip_example; // 用户设备的外网ip
String *requestId = requestId_example; // 当前请求唯一标示符(用UUID生成即可) (optional)
String *idfa = idfa_example; // idfa, 当app_os为IOS (optional)
String *imei = imei_example; // imei, 当app_os为ANDROID (optional)
String *imsi = imsi_example; // imsi,当app_os为ANDROID (optional)

ASOApi *apiInstance = [[ASOApi alloc] init];

// 排重接口
[apiInstance checkWith:sName
    appId:appId
    appOs:appOs
    ip:ip
    requestId:requestId
    idfa:idfa
    imei:imei
    imsi:imsi
              completionHandler: ^(CheckResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AsoApi = require('aso_api');

var api = new AsoApi.ASOApi()

var sName = sName_example; // {String} 供应商识别码,用于区分不同供应商。由钱袋子分配

var appId = 56; // {Integer} app识别码,用于区分不同app。由钱袋子分配

var appOs = 56; // {Integer} app_os, 1:ANDROID, 2:IOS

var ip = ip_example; // {String} 用户设备的外网ip

var opts = { 
  'requestId': requestId_example, // {String} 当前请求唯一标示符(用UUID生成即可)
  'idfa': idfa_example, // {String} idfa, 当app_os为IOS
  'imei': imei_example, // {String} imei, 当app_os为ANDROID
  'imsi': imsi_example // {String} imsi,当app_os为ANDROID
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.check(sName, appId, appOs, ip, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class checkExample
    {
        public void main()
        {
            
            var apiInstance = new ASOApi();
            var sName = sName_example;  // String | 供应商识别码,用于区分不同供应商。由钱袋子分配
            var appId = 56;  // Integer | app识别码,用于区分不同app。由钱袋子分配
            var appOs = 56;  // Integer | app_os, 1:ANDROID, 2:IOS
            var ip = ip_example;  // String | 用户设备的外网ip
            var requestId = requestId_example;  // String | 当前请求唯一标示符(用UUID生成即可) (optional) 
            var idfa = idfa_example;  // String | idfa, 当app_os为IOS (optional) 
            var imei = imei_example;  // String | imei, 当app_os为ANDROID (optional) 
            var imsi = imsi_example;  // String | imsi,当app_os为ANDROID (optional) 

            try
            {
                // 排重接口
                CheckResponse result = apiInstance.check(sName, appId, appOs, ip, requestId, idfa, imei, imsi);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ASOApi.check: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ASOApi();
$sName = sName_example; // String | 供应商识别码,用于区分不同供应商。由钱袋子分配
$appId = 56; // Integer | app识别码,用于区分不同app。由钱袋子分配
$appOs = 56; // Integer | app_os, 1:ANDROID, 2:IOS
$ip = ip_example; // String | 用户设备的外网ip
$requestId = requestId_example; // String | 当前请求唯一标示符(用UUID生成即可)
$idfa = idfa_example; // String | idfa, 当app_os为IOS
$imei = imei_example; // String | imei, 当app_os为ANDROID
$imsi = imsi_example; // String | imsi,当app_os为ANDROID

try {
    $result = $api_instance->check($sName, $appId, $appOs, $ip, $requestId, $idfa, $imei, $imsi);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ASOApi->check: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ASOApi;

my $api_instance = WWW::SwaggerClient::ASOApi->new();
my $sName = sName_example; # String | 供应商识别码,用于区分不同供应商。由钱袋子分配
my $appId = 56; # Integer | app识别码,用于区分不同app。由钱袋子分配
my $appOs = 56; # Integer | app_os, 1:ANDROID, 2:IOS
my $ip = ip_example; # String | 用户设备的外网ip
my $requestId = requestId_example; # String | 当前请求唯一标示符(用UUID生成即可)
my $idfa = idfa_example; # String | idfa, 当app_os为IOS
my $imei = imei_example; # String | imei, 当app_os为ANDROID
my $imsi = imsi_example; # String | imsi,当app_os为ANDROID

eval { 
    my $result = $api_instance->check(sName => $sName, appId => $appId, appOs => $appOs, ip => $ip, requestId => $requestId, idfa => $idfa, imei => $imei, imsi => $imsi);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ASOApi->check: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ASOApi()
sName = sName_example # String | 供应商识别码,用于区分不同供应商。由钱袋子分配
appId = 56 # Integer | app识别码,用于区分不同app。由钱袋子分配
appOs = 56 # Integer | app_os, 1:ANDROID, 2:IOS
ip = ip_example # String | 用户设备的外网ip
requestId = requestId_example # String | 当前请求唯一标示符(用UUID生成即可) (optional)
idfa = idfa_example # String | idfa, 当app_os为IOS (optional)
imei = imei_example # String | imei, 当app_os为ANDROID (optional)
imsi = imsi_example # String | imsi,当app_os为ANDROID (optional)

try: 
    # 排重接口
    api_response = api_instance.check(sName, appId, appOs, ip, requestId=requestId, idfa=idfa, imei=imei, imsi=imsi)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ASOApi->check: %s\n" % e)

Parameters

Header parameters
Name Description
Request-Id
String
当前请求唯一标示符(用UUID生成即可)
Query parameters
Name Description
s_name*
String
供应商识别码,用于区分不同供应商。由钱袋子分配
Required
app_id*
Integer (int32)
app识别码,用于区分不同app。由钱袋子分配
Required
app_os*
Integer (int32)
app_os, 1:ANDROID, 2:IOS
Required
idfa
String
idfa, 当app_os为IOS
imei
String
imei, 当app_os为ANDROID
imsi
String
imsi,当app_os为ANDROID
ip*
String
用户设备的外网ip
Required

Responses

Status: 200 -


click

点击上报


/v1/aso/click

Usage and SDK Samples

curl -X GET "http://aso.51qiandaizi.com/api/v1/aso/click?s_name=&app_id=&app_os=&idfa=&imei=&imsi=&ip=&cb="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ASOApi;

import java.io.File;
import java.util.*;

public class ASOApiExample {

    public static void main(String[] args) {
        
        ASOApi apiInstance = new ASOApi();
        String sName = sName_example; // String | 供应商识别码,用于区分不同供应商。由钱袋子分配
        Integer appId = 56; // Integer | app识别码,用于区分不同app。由钱袋子分配
        Integer appOs = 56; // Integer | app_os, 1:ANDROID, 2:IOS
        String ip = ip_example; // String | 用户设备的外网ip
        String requestId = requestId_example; // String | 当前请求唯一标示符(用UUID生成即可)
        String idfa = idfa_example; // String | idfa, 当app_os为IOS
        String imei = imei_example; // String | imei, 当app_os为ANDROID
        String imsi = imsi_example; // String | imsi,当app_os为ANDROID
        String cb = cb_example; // String | 回调url; 待钱袋子验证通过后,将回调此url;注:仅支持GET回调
        try {
            DefaultResponse result = apiInstance.click(sName, appId, appOs, ip, requestId, idfa, imei, imsi, cb);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ASOApi#click");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ASOApi;

public class ASOApiExample {

    public static void main(String[] args) {
        ASOApi apiInstance = new ASOApi();
        String sName = sName_example; // String | 供应商识别码,用于区分不同供应商。由钱袋子分配
        Integer appId = 56; // Integer | app识别码,用于区分不同app。由钱袋子分配
        Integer appOs = 56; // Integer | app_os, 1:ANDROID, 2:IOS
        String ip = ip_example; // String | 用户设备的外网ip
        String requestId = requestId_example; // String | 当前请求唯一标示符(用UUID生成即可)
        String idfa = idfa_example; // String | idfa, 当app_os为IOS
        String imei = imei_example; // String | imei, 当app_os为ANDROID
        String imsi = imsi_example; // String | imsi,当app_os为ANDROID
        String cb = cb_example; // String | 回调url; 待钱袋子验证通过后,将回调此url;注:仅支持GET回调
        try {
            DefaultResponse result = apiInstance.click(sName, appId, appOs, ip, requestId, idfa, imei, imsi, cb);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ASOApi#click");
            e.printStackTrace();
        }
    }
}
String *sName = sName_example; // 供应商识别码,用于区分不同供应商。由钱袋子分配
Integer *appId = 56; // app识别码,用于区分不同app。由钱袋子分配
Integer *appOs = 56; // app_os, 1:ANDROID, 2:IOS
String *ip = ip_example; // 用户设备的外网ip
String *requestId = requestId_example; // 当前请求唯一标示符(用UUID生成即可) (optional)
String *idfa = idfa_example; // idfa, 当app_os为IOS (optional)
String *imei = imei_example; // imei, 当app_os为ANDROID (optional)
String *imsi = imsi_example; // imsi,当app_os为ANDROID (optional)
String *cb = cb_example; // 回调url; 待钱袋子验证通过后,将回调此url;注:仅支持GET回调 (optional)

ASOApi *apiInstance = [[ASOApi alloc] init];

// 点击上报
[apiInstance clickWith:sName
    appId:appId
    appOs:appOs
    ip:ip
    requestId:requestId
    idfa:idfa
    imei:imei
    imsi:imsi
    cb:cb
              completionHandler: ^(DefaultResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var AsoApi = require('aso_api');

var api = new AsoApi.ASOApi()

var sName = sName_example; // {String} 供应商识别码,用于区分不同供应商。由钱袋子分配

var appId = 56; // {Integer} app识别码,用于区分不同app。由钱袋子分配

var appOs = 56; // {Integer} app_os, 1:ANDROID, 2:IOS

var ip = ip_example; // {String} 用户设备的外网ip

var opts = { 
  'requestId': requestId_example, // {String} 当前请求唯一标示符(用UUID生成即可)
  'idfa': idfa_example, // {String} idfa, 当app_os为IOS
  'imei': imei_example, // {String} imei, 当app_os为ANDROID
  'imsi': imsi_example, // {String} imsi,当app_os为ANDROID
  'cb': cb_example // {String} 回调url; 待钱袋子验证通过后,将回调此url;注:仅支持GET回调
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.click(sName, appId, appOs, ip, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class clickExample
    {
        public void main()
        {
            
            var apiInstance = new ASOApi();
            var sName = sName_example;  // String | 供应商识别码,用于区分不同供应商。由钱袋子分配
            var appId = 56;  // Integer | app识别码,用于区分不同app。由钱袋子分配
            var appOs = 56;  // Integer | app_os, 1:ANDROID, 2:IOS
            var ip = ip_example;  // String | 用户设备的外网ip
            var requestId = requestId_example;  // String | 当前请求唯一标示符(用UUID生成即可) (optional) 
            var idfa = idfa_example;  // String | idfa, 当app_os为IOS (optional) 
            var imei = imei_example;  // String | imei, 当app_os为ANDROID (optional) 
            var imsi = imsi_example;  // String | imsi,当app_os为ANDROID (optional) 
            var cb = cb_example;  // String | 回调url; 待钱袋子验证通过后,将回调此url;注:仅支持GET回调 (optional) 

            try
            {
                // 点击上报
                DefaultResponse result = apiInstance.click(sName, appId, appOs, ip, requestId, idfa, imei, imsi, cb);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ASOApi.click: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ASOApi();
$sName = sName_example; // String | 供应商识别码,用于区分不同供应商。由钱袋子分配
$appId = 56; // Integer | app识别码,用于区分不同app。由钱袋子分配
$appOs = 56; // Integer | app_os, 1:ANDROID, 2:IOS
$ip = ip_example; // String | 用户设备的外网ip
$requestId = requestId_example; // String | 当前请求唯一标示符(用UUID生成即可)
$idfa = idfa_example; // String | idfa, 当app_os为IOS
$imei = imei_example; // String | imei, 当app_os为ANDROID
$imsi = imsi_example; // String | imsi,当app_os为ANDROID
$cb = cb_example; // String | 回调url; 待钱袋子验证通过后,将回调此url;注:仅支持GET回调

try {
    $result = $api_instance->click($sName, $appId, $appOs, $ip, $requestId, $idfa, $imei, $imsi, $cb);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ASOApi->click: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ASOApi;

my $api_instance = WWW::SwaggerClient::ASOApi->new();
my $sName = sName_example; # String | 供应商识别码,用于区分不同供应商。由钱袋子分配
my $appId = 56; # Integer | app识别码,用于区分不同app。由钱袋子分配
my $appOs = 56; # Integer | app_os, 1:ANDROID, 2:IOS
my $ip = ip_example; # String | 用户设备的外网ip
my $requestId = requestId_example; # String | 当前请求唯一标示符(用UUID生成即可)
my $idfa = idfa_example; # String | idfa, 当app_os为IOS
my $imei = imei_example; # String | imei, 当app_os为ANDROID
my $imsi = imsi_example; # String | imsi,当app_os为ANDROID
my $cb = cb_example; # String | 回调url; 待钱袋子验证通过后,将回调此url;注:仅支持GET回调

eval { 
    my $result = $api_instance->click(sName => $sName, appId => $appId, appOs => $appOs, ip => $ip, requestId => $requestId, idfa => $idfa, imei => $imei, imsi => $imsi, cb => $cb);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ASOApi->click: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ASOApi()
sName = sName_example # String | 供应商识别码,用于区分不同供应商。由钱袋子分配
appId = 56 # Integer | app识别码,用于区分不同app。由钱袋子分配
appOs = 56 # Integer | app_os, 1:ANDROID, 2:IOS
ip = ip_example # String | 用户设备的外网ip
requestId = requestId_example # String | 当前请求唯一标示符(用UUID生成即可) (optional)
idfa = idfa_example # String | idfa, 当app_os为IOS (optional)
imei = imei_example # String | imei, 当app_os为ANDROID (optional)
imsi = imsi_example # String | imsi,当app_os为ANDROID (optional)
cb = cb_example # String | 回调url; 待钱袋子验证通过后,将回调此url;注:仅支持GET回调 (optional)

try: 
    # 点击上报
    api_response = api_instance.click(sName, appId, appOs, ip, requestId=requestId, idfa=idfa, imei=imei, imsi=imsi, cb=cb)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ASOApi->click: %s\n" % e)

Parameters

Header parameters
Name Description
Request-Id
String
当前请求唯一标示符(用UUID生成即可)
Query parameters
Name Description
s_name*
String
供应商识别码,用于区分不同供应商。由钱袋子分配
Required
app_id*
Integer (int32)
app识别码,用于区分不同app。由钱袋子分配
Required
app_os*
Integer (int32)
app_os, 1:ANDROID, 2:IOS
Required
idfa
String
idfa, 当app_os为IOS
imei
String
imei, 当app_os为ANDROID
imsi
String
imsi,当app_os为ANDROID
ip*
String
用户设备的外网ip
Required
cb
String
回调url; 待钱袋子验证通过后,将回调此url;注:仅支持GET回调

Responses

Status: 200 -


Generated 2018-09-17T03:41:21.593Z