钱袋子Server API

APP

bindDevice

设备绑定,由H5触发APP调用.


/api/app/device/_bind

Usage and SDK Samples

curl -X POST "http://127.0.0.1:42135/api/app/device/_bind"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.APPApi;

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

public class APPApiExample {

    public static void main(String[] args) {
        
        APPApi apiInstance = new APPApi();
        Integer userId = 56; // Integer | 用户ID
        String appVersion = appVersion_example; // String | app版本号
        String sdkVersion = sdkVersion_example; // String | sdk版本号
        String idfa = idfa_example; // String | idfa
        String osVersion = osVersion_example; // String | 苹果系统版本
        String sign = sign_example; // String | 签名, md5(userId+appVersion... +$token), app需要验证签名
        try {
            DefaultResponse result = apiInstance.bindDevice(userId, appVersion, sdkVersion, idfa, osVersion, sign);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APPApi#bindDevice");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.APPApi;

public class APPApiExample {

    public static void main(String[] args) {
        APPApi apiInstance = new APPApi();
        Integer userId = 56; // Integer | 用户ID
        String appVersion = appVersion_example; // String | app版本号
        String sdkVersion = sdkVersion_example; // String | sdk版本号
        String idfa = idfa_example; // String | idfa
        String osVersion = osVersion_example; // String | 苹果系统版本
        String sign = sign_example; // String | 签名, md5(userId+appVersion... +$token), app需要验证签名
        try {
            DefaultResponse result = apiInstance.bindDevice(userId, appVersion, sdkVersion, idfa, osVersion, sign);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APPApi#bindDevice");
            e.printStackTrace();
        }
    }
}
Integer *userId = 56; // 用户ID
String *appVersion = appVersion_example; // app版本号
String *sdkVersion = sdkVersion_example; // sdk版本号
String *idfa = idfa_example; // idfa
String *osVersion = osVersion_example; // 苹果系统版本
String *sign = sign_example; // 签名, md5(userId+appVersion... +$token), app需要验证签名

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

// 设备绑定,由H5触发APP调用.
[apiInstance bindDeviceWith:userId
    appVersion:appVersion
    sdkVersion:sdkVersion
    idfa:idfa
    osVersion:osVersion
    sign:sign
              completionHandler: ^(DefaultResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ServerApi = require('server_api');

var api = new ServerApi.APPApi()

var userId = 56; // {Integer} 用户ID

var appVersion = appVersion_example; // {String} app版本号

var sdkVersion = sdkVersion_example; // {String} sdk版本号

var idfa = idfa_example; // {String} idfa

var osVersion = osVersion_example; // {String} 苹果系统版本

var sign = sign_example; // {String} 签名, md5(userId+appVersion... +$token), app需要验证签名


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.bindDevice(userId, appVersion, sdkVersion, idfa, osVersion, sign, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class bindDeviceExample
    {
        public void main()
        {
            
            var apiInstance = new APPApi();
            var userId = 56;  // Integer | 用户ID
            var appVersion = appVersion_example;  // String | app版本号
            var sdkVersion = sdkVersion_example;  // String | sdk版本号
            var idfa = idfa_example;  // String | idfa
            var osVersion = osVersion_example;  // String | 苹果系统版本
            var sign = sign_example;  // String | 签名, md5(userId+appVersion... +$token), app需要验证签名

            try
            {
                // 设备绑定,由H5触发APP调用.
                DefaultResponse result = apiInstance.bindDevice(userId, appVersion, sdkVersion, idfa, osVersion, sign);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling APPApi.bindDevice: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\APPApi();
$userId = 56; // Integer | 用户ID
$appVersion = appVersion_example; // String | app版本号
$sdkVersion = sdkVersion_example; // String | sdk版本号
$idfa = idfa_example; // String | idfa
$osVersion = osVersion_example; // String | 苹果系统版本
$sign = sign_example; // String | 签名, md5(userId+appVersion... +$token), app需要验证签名

try {
    $result = $api_instance->bindDevice($userId, $appVersion, $sdkVersion, $idfa, $osVersion, $sign);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling APPApi->bindDevice: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::APPApi;

my $api_instance = WWW::SwaggerClient::APPApi->new();
my $userId = 56; # Integer | 用户ID
my $appVersion = appVersion_example; # String | app版本号
my $sdkVersion = sdkVersion_example; # String | sdk版本号
my $idfa = idfa_example; # String | idfa
my $osVersion = osVersion_example; # String | 苹果系统版本
my $sign = sign_example; # String | 签名, md5(userId+appVersion... +$token), app需要验证签名

eval { 
    my $result = $api_instance->bindDevice(userId => $userId, appVersion => $appVersion, sdkVersion => $sdkVersion, idfa => $idfa, osVersion => $osVersion, sign => $sign);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling APPApi->bindDevice: $@\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.APPApi()
userId = 56 # Integer | 用户ID
appVersion = appVersion_example # String | app版本号
sdkVersion = sdkVersion_example # String | sdk版本号
idfa = idfa_example # String | idfa
osVersion = osVersion_example # String | 苹果系统版本
sign = sign_example # String | 签名, md5(userId+appVersion... +$token), app需要验证签名

try: 
    # 设备绑定,由H5触发APP调用.
    api_response = api_instance.bind_device(userId, appVersion, sdkVersion, idfa, osVersion, sign)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling APPApi->bindDevice: %s\n" % e)

Parameters

Form parameters
Name Description
userId*
Integer
用户ID
Required
appVersion*
String
app版本号
Required
sdkVersion*
String
sdk版本号
Required
idfa*
String
idfa
Required
osVersion*
String
苹果系统版本
Required
sign*
String
签名, md5(userId+appVersion... +$token), app需要验证签名
Required

Responses

Status: 200 -


reportDevice

报告app状态,每次app启动时调用


/api/app/device/_report

Usage and SDK Samples

curl -X GET "http://127.0.0.1:42135/api/app/device/_report"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.APPApi;

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

public class APPApiExample {

    public static void main(String[] args) {
        
        APPApi apiInstance = new APPApi();
        String appVersion = appVersion_example; // String | app版本号
        String sdkVersion = sdkVersion_example; // String | sdk版本号
        String idfa = idfa_example; // String | idfa
        String osVersion = osVersion_example; // String | 苹果系统版本
        String sign = sign_example; // String | 签名,md5(appVersion... +$token), app需要验证签名
        try {
            DefaultResponse result = apiInstance.reportDevice(appVersion, sdkVersion, idfa, osVersion, sign);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APPApi#reportDevice");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.APPApi;

public class APPApiExample {

    public static void main(String[] args) {
        APPApi apiInstance = new APPApi();
        String appVersion = appVersion_example; // String | app版本号
        String sdkVersion = sdkVersion_example; // String | sdk版本号
        String idfa = idfa_example; // String | idfa
        String osVersion = osVersion_example; // String | 苹果系统版本
        String sign = sign_example; // String | 签名,md5(appVersion... +$token), app需要验证签名
        try {
            DefaultResponse result = apiInstance.reportDevice(appVersion, sdkVersion, idfa, osVersion, sign);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APPApi#reportDevice");
            e.printStackTrace();
        }
    }
}
String *appVersion = appVersion_example; // app版本号
String *sdkVersion = sdkVersion_example; // sdk版本号
String *idfa = idfa_example; // idfa
String *osVersion = osVersion_example; // 苹果系统版本
String *sign = sign_example; // 签名,md5(appVersion... +$token), app需要验证签名

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

// 报告app状态,每次app启动时调用
[apiInstance reportDeviceWith:appVersion
    sdkVersion:sdkVersion
    idfa:idfa
    osVersion:osVersion
    sign:sign
              completionHandler: ^(DefaultResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ServerApi = require('server_api');

var api = new ServerApi.APPApi()

var appVersion = appVersion_example; // {String} app版本号

var sdkVersion = sdkVersion_example; // {String} sdk版本号

var idfa = idfa_example; // {String} idfa

var osVersion = osVersion_example; // {String} 苹果系统版本

var sign = sign_example; // {String} 签名,md5(appVersion... +$token), app需要验证签名


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.reportDevice(appVersion, sdkVersion, idfa, osVersion, sign, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class reportDeviceExample
    {
        public void main()
        {
            
            var apiInstance = new APPApi();
            var appVersion = appVersion_example;  // String | app版本号
            var sdkVersion = sdkVersion_example;  // String | sdk版本号
            var idfa = idfa_example;  // String | idfa
            var osVersion = osVersion_example;  // String | 苹果系统版本
            var sign = sign_example;  // String | 签名,md5(appVersion... +$token), app需要验证签名

            try
            {
                // 报告app状态,每次app启动时调用
                DefaultResponse result = apiInstance.reportDevice(appVersion, sdkVersion, idfa, osVersion, sign);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling APPApi.reportDevice: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\APPApi();
$appVersion = appVersion_example; // String | app版本号
$sdkVersion = sdkVersion_example; // String | sdk版本号
$idfa = idfa_example; // String | idfa
$osVersion = osVersion_example; // String | 苹果系统版本
$sign = sign_example; // String | 签名,md5(appVersion... +$token), app需要验证签名

try {
    $result = $api_instance->reportDevice($appVersion, $sdkVersion, $idfa, $osVersion, $sign);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling APPApi->reportDevice: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::APPApi;

my $api_instance = WWW::SwaggerClient::APPApi->new();
my $appVersion = appVersion_example; # String | app版本号
my $sdkVersion = sdkVersion_example; # String | sdk版本号
my $idfa = idfa_example; # String | idfa
my $osVersion = osVersion_example; # String | 苹果系统版本
my $sign = sign_example; # String | 签名,md5(appVersion... +$token), app需要验证签名

eval { 
    my $result = $api_instance->reportDevice(appVersion => $appVersion, sdkVersion => $sdkVersion, idfa => $idfa, osVersion => $osVersion, sign => $sign);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling APPApi->reportDevice: $@\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.APPApi()
appVersion = appVersion_example # String | app版本号
sdkVersion = sdkVersion_example # String | sdk版本号
idfa = idfa_example # String | idfa
osVersion = osVersion_example # String | 苹果系统版本
sign = sign_example # String | 签名,md5(appVersion... +$token), app需要验证签名

try: 
    # 报告app状态,每次app启动时调用
    api_response = api_instance.report_device(appVersion, sdkVersion, idfa, osVersion, sign)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling APPApi->reportDevice: %s\n" % e)

Parameters

Form parameters
Name Description
appVersion*
String
app版本号
Required
sdkVersion*
String
sdk版本号
Required
idfa*
String
idfa
Required
osVersion*
String
苹果系统版本
Required
sign*
String
签名,md5(appVersion... +$token), app需要验证签名
Required

Responses

Status: 200 -


startTask

调用openappAPI成功后,调用此api


/api/app/task/_start

Usage and SDK Samples

curl -X GET "http://127.0.0.1:42135/api/app/task/_start?trId=&sign="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.APPApi;

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

public class APPApiExample {

    public static void main(String[] args) {
        
        APPApi apiInstance = new APPApi();
        String trId = trId_example; // String | task_record_id. 任务记录编号
        String sign = sign_example; // String | 签名, md5(trId+$token), app需要验证签名
        try {
            DefaultResponse result = apiInstance.startTask(trId, sign);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APPApi#startTask");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.APPApi;

public class APPApiExample {

    public static void main(String[] args) {
        APPApi apiInstance = new APPApi();
        String trId = trId_example; // String | task_record_id. 任务记录编号
        String sign = sign_example; // String | 签名, md5(trId+$token), app需要验证签名
        try {
            DefaultResponse result = apiInstance.startTask(trId, sign);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APPApi#startTask");
            e.printStackTrace();
        }
    }
}
String *trId = trId_example; // task_record_id. 任务记录编号
String *sign = sign_example; // 签名, md5(trId+$token), app需要验证签名

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

// 调用openappAPI成功后,调用此api
[apiInstance startTaskWith:trId
    sign:sign
              completionHandler: ^(DefaultResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ServerApi = require('server_api');

var api = new ServerApi.APPApi()

var trId = trId_example; // {String} task_record_id. 任务记录编号

var sign = sign_example; // {String} 签名, md5(trId+$token), app需要验证签名


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.startTask(trId, sign, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class startTaskExample
    {
        public void main()
        {
            
            var apiInstance = new APPApi();
            var trId = trId_example;  // String | task_record_id. 任务记录编号
            var sign = sign_example;  // String | 签名, md5(trId+$token), app需要验证签名

            try
            {
                // 调用openappAPI成功后,调用此api
                DefaultResponse result = apiInstance.startTask(trId, sign);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling APPApi.startTask: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\APPApi();
$trId = trId_example; // String | task_record_id. 任务记录编号
$sign = sign_example; // String | 签名, md5(trId+$token), app需要验证签名

try {
    $result = $api_instance->startTask($trId, $sign);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling APPApi->startTask: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::APPApi;

my $api_instance = WWW::SwaggerClient::APPApi->new();
my $trId = trId_example; # String | task_record_id. 任务记录编号
my $sign = sign_example; # String | 签名, md5(trId+$token), app需要验证签名

eval { 
    my $result = $api_instance->startTask(trId => $trId, sign => $sign);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling APPApi->startTask: $@\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.APPApi()
trId = trId_example # String | task_record_id. 任务记录编号
sign = sign_example # String | 签名, md5(trId+$token), app需要验证签名

try: 
    # 调用openappAPI成功后,调用此api
    api_response = api_instance.start_task(trId, sign)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling APPApi->startTask: %s\n" % e)

Parameters

Query parameters
Name Description
trId*
String
task_record_id. 任务记录编号
Required
sign*
String
签名, md5(trId+$token), app需要验证签名
Required

Responses

Status: 200 -


wxLogin

微信登陆


/api/app/user/_wxLogin

Usage and SDK Samples

curl -X POST "http://127.0.0.1:42135/api/app/user/_wxLogin?code=&idfa="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.APPApi;

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

public class APPApiExample {

    public static void main(String[] args) {
        
        APPApi apiInstance = new APPApi();
        Integer userId = 56; // Integer | 用户ID
        String code = code_example; // String | authorization_code
        String idfa = idfa_example; // String | idfa
        try {
            DefaultResponse result = apiInstance.wxLogin(userId, code, idfa);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APPApi#wxLogin");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.APPApi;

public class APPApiExample {

    public static void main(String[] args) {
        APPApi apiInstance = new APPApi();
        Integer userId = 56; // Integer | 用户ID
        String code = code_example; // String | authorization_code
        String idfa = idfa_example; // String | idfa
        try {
            DefaultResponse result = apiInstance.wxLogin(userId, code, idfa);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APPApi#wxLogin");
            e.printStackTrace();
        }
    }
}
Integer *userId = 56; // 用户ID
String *code = code_example; // authorization_code
String *idfa = idfa_example; // idfa

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

// 微信登陆
[apiInstance wxLoginWith:userId
    code:code
    idfa:idfa
              completionHandler: ^(DefaultResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ServerApi = require('server_api');

var api = new ServerApi.APPApi()

var userId = 56; // {Integer} 用户ID

var code = code_example; // {String} authorization_code

var idfa = idfa_example; // {String} idfa


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.wxLogin(userId, code, idfa, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class wxLoginExample
    {
        public void main()
        {
            
            var apiInstance = new APPApi();
            var userId = 56;  // Integer | 用户ID
            var code = code_example;  // String | authorization_code
            var idfa = idfa_example;  // String | idfa

            try
            {
                // 微信登陆
                DefaultResponse result = apiInstance.wxLogin(userId, code, idfa);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling APPApi.wxLogin: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\APPApi();
$userId = 56; // Integer | 用户ID
$code = code_example; // String | authorization_code
$idfa = idfa_example; // String | idfa

try {
    $result = $api_instance->wxLogin($userId, $code, $idfa);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling APPApi->wxLogin: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::APPApi;

my $api_instance = WWW::SwaggerClient::APPApi->new();
my $userId = 56; # Integer | 用户ID
my $code = code_example; # String | authorization_code
my $idfa = idfa_example; # String | idfa

eval { 
    my $result = $api_instance->wxLogin(userId => $userId, code => $code, idfa => $idfa);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling APPApi->wxLogin: $@\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.APPApi()
userId = 56 # Integer | 用户ID
code = code_example # String | authorization_code
idfa = idfa_example # String | idfa

try: 
    # 微信登陆
    api_response = api_instance.wx_login(userId, code, idfa)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling APPApi->wxLogin: %s\n" % e)

Parameters

Form parameters
Name Description
userId*
Integer
用户ID
Required
Query parameters
Name Description
code*
String
authorization_code
Required
idfa*
String
idfa
Required

Responses

Status: 200 -


H5

applyTask

领取任务


/api/task_record/

Usage and SDK Samples

curl -X POST "http://127.0.0.1:42135/api/task_record/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.H5Api;

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

public class H5ApiExample {

    public static void main(String[] args) {
        
        H5Api apiInstance = new H5Api();
        String taskCode = taskCode_example; // String | 任务编号
        try {
            ApplyTaskResponse result = apiInstance.applyTask(taskCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#applyTask");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.H5Api;

public class H5ApiExample {

    public static void main(String[] args) {
        H5Api apiInstance = new H5Api();
        String taskCode = taskCode_example; // String | 任务编号
        try {
            ApplyTaskResponse result = apiInstance.applyTask(taskCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#applyTask");
            e.printStackTrace();
        }
    }
}
String *taskCode = taskCode_example; // 任务编号

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

// 领取任务
[apiInstance applyTaskWith:taskCode
              completionHandler: ^(ApplyTaskResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ServerApi = require('server_api');

var api = new ServerApi.H5Api()

var taskCode = taskCode_example; // {String} 任务编号


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

namespace Example
{
    public class applyTaskExample
    {
        public void main()
        {
            
            var apiInstance = new H5Api();
            var taskCode = taskCode_example;  // String | 任务编号

            try
            {
                // 领取任务
                ApplyTaskResponse result = apiInstance.applyTask(taskCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling H5Api.applyTask: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\H5Api();
$taskCode = taskCode_example; // String | 任务编号

try {
    $result = $api_instance->applyTask($taskCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling H5Api->applyTask: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::H5Api;

my $api_instance = WWW::SwaggerClient::H5Api->new();
my $taskCode = taskCode_example; # String | 任务编号

eval { 
    my $result = $api_instance->applyTask(taskCode => $taskCode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling H5Api->applyTask: $@\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.H5Api()
taskCode = taskCode_example # String | 任务编号

try: 
    # 领取任务
    api_response = api_instance.apply_task(taskCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling H5Api->applyTask: %s\n" % e)

Parameters

Form parameters
Name Description
taskCode*
String
任务编号
Required

Responses

Status: 200 -


applyWithdrawal

申请提现


/api/withdrawal/

Usage and SDK Samples

curl -X POST "http://127.0.0.1:42135/api/withdrawal/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.H5Api;

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

public class H5ApiExample {

    public static void main(String[] args) {
        
        H5Api apiInstance = new H5Api();
        String name = name_example; // String | 姓名
        String account = account_example; // String | 账号
        Integer amountCode = 56; // Integer | 金额编号,10: 10元; 50: 50元; 100: 100元; 200: 200元
        try {
            DefaultResponse result = apiInstance.applyWithdrawal(name, account, amountCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#applyWithdrawal");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.H5Api;

public class H5ApiExample {

    public static void main(String[] args) {
        H5Api apiInstance = new H5Api();
        String name = name_example; // String | 姓名
        String account = account_example; // String | 账号
        Integer amountCode = 56; // Integer | 金额编号,10: 10元; 50: 50元; 100: 100元; 200: 200元
        try {
            DefaultResponse result = apiInstance.applyWithdrawal(name, account, amountCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#applyWithdrawal");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 姓名
String *account = account_example; // 账号
Integer *amountCode = 56; // 金额编号,10: 10元; 50: 50元; 100: 100元; 200: 200元

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

// 申请提现
[apiInstance applyWithdrawalWith:name
    account:account
    amountCode:amountCode
              completionHandler: ^(DefaultResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ServerApi = require('server_api');

var api = new ServerApi.H5Api()

var name = name_example; // {String} 姓名

var account = account_example; // {String} 账号

var amountCode = 56; // {Integer} 金额编号,10: 10元; 50: 50元; 100: 100元; 200: 200元


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.applyWithdrawal(name, account, amountCode, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class applyWithdrawalExample
    {
        public void main()
        {
            
            var apiInstance = new H5Api();
            var name = name_example;  // String | 姓名
            var account = account_example;  // String | 账号
            var amountCode = 56;  // Integer | 金额编号,10: 10元; 50: 50元; 100: 100元; 200: 200元

            try
            {
                // 申请提现
                DefaultResponse result = apiInstance.applyWithdrawal(name, account, amountCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling H5Api.applyWithdrawal: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\H5Api();
$name = name_example; // String | 姓名
$account = account_example; // String | 账号
$amountCode = 56; // Integer | 金额编号,10: 10元; 50: 50元; 100: 100元; 200: 200元

try {
    $result = $api_instance->applyWithdrawal($name, $account, $amountCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling H5Api->applyWithdrawal: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::H5Api;

my $api_instance = WWW::SwaggerClient::H5Api->new();
my $name = name_example; # String | 姓名
my $account = account_example; # String | 账号
my $amountCode = 56; # Integer | 金额编号,10: 10元; 50: 50元; 100: 100元; 200: 200元

eval { 
    my $result = $api_instance->applyWithdrawal(name => $name, account => $account, amountCode => $amountCode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling H5Api->applyWithdrawal: $@\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.H5Api()
name = name_example # String | 姓名
account = account_example # String | 账号
amountCode = 56 # Integer | 金额编号,10: 10元; 50: 50元; 100: 100元; 200: 200元

try: 
    # 申请提现
    api_response = api_instance.apply_withdrawal(name, account, amountCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling H5Api->applyWithdrawal: %s\n" % e)

Parameters

Form parameters
Name Description
name*
String
姓名
Required
account*
String
账号
Required
amountCode*
Integer (int32)
金额编号,10: 10元; 50: 50元; 100: 100元; 200: 200元
Required

Responses

Status: 200 -


cancelTaskRecord

提交任务


/api/task_record/_cancel

Usage and SDK Samples

curl -X POST "http://127.0.0.1:42135/api/task_record/_cancel"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.H5Api;

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

public class H5ApiExample {

    public static void main(String[] args) {
        
        H5Api apiInstance = new H5Api();
        String taskRecordCode = taskRecordCode_example; // String | 任务编号
        try {
            DefaultResponse result = apiInstance.cancelTaskRecord(taskRecordCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#cancelTaskRecord");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.H5Api;

public class H5ApiExample {

    public static void main(String[] args) {
        H5Api apiInstance = new H5Api();
        String taskRecordCode = taskRecordCode_example; // String | 任务编号
        try {
            DefaultResponse result = apiInstance.cancelTaskRecord(taskRecordCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#cancelTaskRecord");
            e.printStackTrace();
        }
    }
}
String *taskRecordCode = taskRecordCode_example; // 任务编号

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

// 提交任务
[apiInstance cancelTaskRecordWith:taskRecordCode
              completionHandler: ^(DefaultResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ServerApi = require('server_api');

var api = new ServerApi.H5Api()

var taskRecordCode = taskRecordCode_example; // {String} 任务编号


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

namespace Example
{
    public class cancelTaskRecordExample
    {
        public void main()
        {
            
            var apiInstance = new H5Api();
            var taskRecordCode = taskRecordCode_example;  // String | 任务编号

            try
            {
                // 提交任务
                DefaultResponse result = apiInstance.cancelTaskRecord(taskRecordCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling H5Api.cancelTaskRecord: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\H5Api();
$taskRecordCode = taskRecordCode_example; // String | 任务编号

try {
    $result = $api_instance->cancelTaskRecord($taskRecordCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling H5Api->cancelTaskRecord: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::H5Api;

my $api_instance = WWW::SwaggerClient::H5Api->new();
my $taskRecordCode = taskRecordCode_example; # String | 任务编号

eval { 
    my $result = $api_instance->cancelTaskRecord(taskRecordCode => $taskRecordCode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling H5Api->cancelTaskRecord: $@\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.H5Api()
taskRecordCode = taskRecordCode_example # String | 任务编号

try: 
    # 提交任务
    api_response = api_instance.cancel_task_record(taskRecordCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling H5Api->cancelTaskRecord: %s\n" % e)

Parameters

Form parameters
Name Description
taskRecordCode*
String
任务编号
Required

Responses

Status: 200 -


getPromotion

获取推广信息


/api/promotion/

Usage and SDK Samples

curl -X GET "http://127.0.0.1:42135/api/promotion/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.H5Api;

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

public class H5ApiExample {

    public static void main(String[] args) {
        
        H5Api apiInstance = new H5Api();
        try {
            GetPromotionResponse result = apiInstance.getPromotion();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#getPromotion");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.H5Api;

public class H5ApiExample {

    public static void main(String[] args) {
        H5Api apiInstance = new H5Api();
        try {
            GetPromotionResponse result = apiInstance.getPromotion();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#getPromotion");
            e.printStackTrace();
        }
    }
}

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

// 获取推广信息
[apiInstance getPromotionWithCompletionHandler: 
              ^(GetPromotionResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ServerApi = require('server_api');

var api = new ServerApi.H5Api()

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

namespace Example
{
    public class getPromotionExample
    {
        public void main()
        {
            
            var apiInstance = new H5Api();

            try
            {
                // 获取推广信息
                GetPromotionResponse result = apiInstance.getPromotion();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling H5Api.getPromotion: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\H5Api();

try {
    $result = $api_instance->getPromotion();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling H5Api->getPromotion: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::H5Api;

my $api_instance = WWW::SwaggerClient::H5Api->new();

eval { 
    my $result = $api_instance->getPromotion();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling H5Api->getPromotion: $@\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.H5Api()

try: 
    # 获取推广信息
    api_response = api_instance.get_promotion()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling H5Api->getPromotion: %s\n" % e)

Parameters

Responses

Status: 200 -


getTaskList

获取任务列表


/api/task/_list

Usage and SDK Samples

curl -X GET "http://127.0.0.1:42135/api/task/_list"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.H5Api;

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

public class H5ApiExample {

    public static void main(String[] args) {
        
        H5Api apiInstance = new H5Api();
        try {
            TaskListResponse result = apiInstance.getTaskList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#getTaskList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.H5Api;

public class H5ApiExample {

    public static void main(String[] args) {
        H5Api apiInstance = new H5Api();
        try {
            TaskListResponse result = apiInstance.getTaskList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#getTaskList");
            e.printStackTrace();
        }
    }
}

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

// 获取任务列表
[apiInstance getTaskListWithCompletionHandler: 
              ^(TaskListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ServerApi = require('server_api');

var api = new ServerApi.H5Api()

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

namespace Example
{
    public class getTaskListExample
    {
        public void main()
        {
            
            var apiInstance = new H5Api();

            try
            {
                // 获取任务列表
                TaskListResponse result = apiInstance.getTaskList();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling H5Api.getTaskList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\H5Api();

try {
    $result = $api_instance->getTaskList();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling H5Api->getTaskList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::H5Api;

my $api_instance = WWW::SwaggerClient::H5Api->new();

eval { 
    my $result = $api_instance->getTaskList();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling H5Api->getTaskList: $@\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.H5Api()

try: 
    # 获取任务列表
    api_response = api_instance.get_task_list()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling H5Api->getTaskList: %s\n" % e)

Parameters

Responses

Status: 200 -


getTaskRecordDetail

获取任务记录详情


/api/task_record/_detail

Usage and SDK Samples

curl -X GET "http://127.0.0.1:42135/api/task_record/_detail?taskRecordCode="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.H5Api;

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

public class H5ApiExample {

    public static void main(String[] args) {
        
        H5Api apiInstance = new H5Api();
        String taskRecordCode = taskRecordCode_example; // String | 任务记录编号
        try {
            TaskRecordDetailResponse result = apiInstance.getTaskRecordDetail(taskRecordCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#getTaskRecordDetail");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.H5Api;

public class H5ApiExample {

    public static void main(String[] args) {
        H5Api apiInstance = new H5Api();
        String taskRecordCode = taskRecordCode_example; // String | 任务记录编号
        try {
            TaskRecordDetailResponse result = apiInstance.getTaskRecordDetail(taskRecordCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#getTaskRecordDetail");
            e.printStackTrace();
        }
    }
}
String *taskRecordCode = taskRecordCode_example; // 任务记录编号

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

// 获取任务记录详情
[apiInstance getTaskRecordDetailWith:taskRecordCode
              completionHandler: ^(TaskRecordDetailResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ServerApi = require('server_api');

var api = new ServerApi.H5Api()

var taskRecordCode = taskRecordCode_example; // {String} 任务记录编号


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

namespace Example
{
    public class getTaskRecordDetailExample
    {
        public void main()
        {
            
            var apiInstance = new H5Api();
            var taskRecordCode = taskRecordCode_example;  // String | 任务记录编号

            try
            {
                // 获取任务记录详情
                TaskRecordDetailResponse result = apiInstance.getTaskRecordDetail(taskRecordCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling H5Api.getTaskRecordDetail: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\H5Api();
$taskRecordCode = taskRecordCode_example; // String | 任务记录编号

try {
    $result = $api_instance->getTaskRecordDetail($taskRecordCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling H5Api->getTaskRecordDetail: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::H5Api;

my $api_instance = WWW::SwaggerClient::H5Api->new();
my $taskRecordCode = taskRecordCode_example; # String | 任务记录编号

eval { 
    my $result = $api_instance->getTaskRecordDetail(taskRecordCode => $taskRecordCode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling H5Api->getTaskRecordDetail: $@\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.H5Api()
taskRecordCode = taskRecordCode_example # String | 任务记录编号

try: 
    # 获取任务记录详情
    api_response = api_instance.get_task_record_detail(taskRecordCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling H5Api->getTaskRecordDetail: %s\n" % e)

Parameters

Query parameters
Name Description
taskRecordCode*
String
任务记录编号
Required

Responses

Status: 200 -


getTaskRecordList

获取任务记录列表


/api/task_record/_list

Usage and SDK Samples

curl -X GET "http://127.0.0.1:42135/api/task_record/_list"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.H5Api;

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

public class H5ApiExample {

    public static void main(String[] args) {
        
        H5Api apiInstance = new H5Api();
        try {
            TaskRecordListResponse result = apiInstance.getTaskRecordList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#getTaskRecordList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.H5Api;

public class H5ApiExample {

    public static void main(String[] args) {
        H5Api apiInstance = new H5Api();
        try {
            TaskRecordListResponse result = apiInstance.getTaskRecordList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#getTaskRecordList");
            e.printStackTrace();
        }
    }
}

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

// 获取任务记录列表
[apiInstance getTaskRecordListWithCompletionHandler: 
              ^(TaskRecordListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ServerApi = require('server_api');

var api = new ServerApi.H5Api()

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

namespace Example
{
    public class getTaskRecordListExample
    {
        public void main()
        {
            
            var apiInstance = new H5Api();

            try
            {
                // 获取任务记录列表
                TaskRecordListResponse result = apiInstance.getTaskRecordList();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling H5Api.getTaskRecordList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\H5Api();

try {
    $result = $api_instance->getTaskRecordList();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling H5Api->getTaskRecordList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::H5Api;

my $api_instance = WWW::SwaggerClient::H5Api->new();

eval { 
    my $result = $api_instance->getTaskRecordList();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling H5Api->getTaskRecordList: $@\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.H5Api()

try: 
    # 获取任务记录列表
    api_response = api_instance.get_task_record_list()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling H5Api->getTaskRecordList: %s\n" % e)

Parameters

Responses

Status: 200 -


getUserDetail

获取当前用户信息


/api/user/_detail

Usage and SDK Samples

curl -X GET "http://127.0.0.1:42135/api/user/_detail"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.H5Api;

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

public class H5ApiExample {

    public static void main(String[] args) {
        
        H5Api apiInstance = new H5Api();
        try {
            UserDetailResponse result = apiInstance.getUserDetail();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#getUserDetail");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.H5Api;

public class H5ApiExample {

    public static void main(String[] args) {
        H5Api apiInstance = new H5Api();
        try {
            UserDetailResponse result = apiInstance.getUserDetail();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#getUserDetail");
            e.printStackTrace();
        }
    }
}

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

// 获取当前用户信息
[apiInstance getUserDetailWithCompletionHandler: 
              ^(UserDetailResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ServerApi = require('server_api');

var api = new ServerApi.H5Api()

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

namespace Example
{
    public class getUserDetailExample
    {
        public void main()
        {
            
            var apiInstance = new H5Api();

            try
            {
                // 获取当前用户信息
                UserDetailResponse result = apiInstance.getUserDetail();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling H5Api.getUserDetail: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\H5Api();

try {
    $result = $api_instance->getUserDetail();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling H5Api->getUserDetail: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::H5Api;

my $api_instance = WWW::SwaggerClient::H5Api->new();

eval { 
    my $result = $api_instance->getUserDetail();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling H5Api->getUserDetail: $@\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.H5Api()

try: 
    # 获取当前用户信息
    api_response = api_instance.get_user_detail()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling H5Api->getUserDetail: %s\n" % e)

Parameters

Responses

Status: 200 -


getWithdrawList

获取提现记录列表


/api/withdraw/_list

Usage and SDK Samples

curl -X GET "http://127.0.0.1:42135/api/withdraw/_list"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.H5Api;

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

public class H5ApiExample {

    public static void main(String[] args) {
        
        H5Api apiInstance = new H5Api();
        try {
            WithdrawalListResponse result = apiInstance.getWithdrawList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#getWithdrawList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.H5Api;

public class H5ApiExample {

    public static void main(String[] args) {
        H5Api apiInstance = new H5Api();
        try {
            WithdrawalListResponse result = apiInstance.getWithdrawList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#getWithdrawList");
            e.printStackTrace();
        }
    }
}

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

// 获取提现记录列表
[apiInstance getWithdrawListWithCompletionHandler: 
              ^(WithdrawalListResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ServerApi = require('server_api');

var api = new ServerApi.H5Api()

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

namespace Example
{
    public class getWithdrawListExample
    {
        public void main()
        {
            
            var apiInstance = new H5Api();

            try
            {
                // 获取提现记录列表
                WithdrawalListResponse result = apiInstance.getWithdrawList();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling H5Api.getWithdrawList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\H5Api();

try {
    $result = $api_instance->getWithdrawList();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling H5Api->getWithdrawList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::H5Api;

my $api_instance = WWW::SwaggerClient::H5Api->new();

eval { 
    my $result = $api_instance->getWithdrawList();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling H5Api->getWithdrawList: $@\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.H5Api()

try: 
    # 获取提现记录列表
    api_response = api_instance.get_withdraw_list()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling H5Api->getWithdrawList: %s\n" % e)

Parameters

Responses

Status: 200 -


login

登陆


/api/basic/_login

Usage and SDK Samples

curl -X POST "http://127.0.0.1:42135/api/basic/_login"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.H5Api;

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

public class H5ApiExample {

    public static void main(String[] args) {
        
        H5Api apiInstance = new H5Api();
        String mobile = mobile_example; // String | 手机
        String code = code_example; // String | 验证码
        try {
            DefaultResponse result = apiInstance.login(mobile, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#login");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.H5Api;

public class H5ApiExample {

    public static void main(String[] args) {
        H5Api apiInstance = new H5Api();
        String mobile = mobile_example; // String | 手机
        String code = code_example; // String | 验证码
        try {
            DefaultResponse result = apiInstance.login(mobile, code);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#login");
            e.printStackTrace();
        }
    }
}
String *mobile = mobile_example; // 手机
String *code = code_example; // 验证码

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

// 登陆
[apiInstance loginWith:mobile
    code:code
              completionHandler: ^(DefaultResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ServerApi = require('server_api');

var api = new ServerApi.H5Api()

var mobile = mobile_example; // {String} 手机

var code = code_example; // {String} 验证码


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.login(mobile, code, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class loginExample
    {
        public void main()
        {
            
            var apiInstance = new H5Api();
            var mobile = mobile_example;  // String | 手机
            var code = code_example;  // String | 验证码

            try
            {
                // 登陆
                DefaultResponse result = apiInstance.login(mobile, code);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling H5Api.login: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\H5Api();
$mobile = mobile_example; // String | 手机
$code = code_example; // String | 验证码

try {
    $result = $api_instance->login($mobile, $code);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling H5Api->login: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::H5Api;

my $api_instance = WWW::SwaggerClient::H5Api->new();
my $mobile = mobile_example; # String | 手机
my $code = code_example; # String | 验证码

eval { 
    my $result = $api_instance->login(mobile => $mobile, code => $code);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling H5Api->login: $@\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.H5Api()
mobile = mobile_example # String | 手机
code = code_example # String | 验证码

try: 
    # 登陆
    api_response = api_instance.login(mobile, code)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling H5Api->login: %s\n" % e)

Parameters

Form parameters
Name Description
mobile*
String
手机
Required
code*
String
验证码
Required

Responses

Status: 200 -


register

注册


/api/basic/_register

Usage and SDK Samples

curl -X POST "http://127.0.0.1:42135/api/basic/_register"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.H5Api;

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

public class H5ApiExample {

    public static void main(String[] args) {
        
        H5Api apiInstance = new H5Api();
        String mobile = mobile_example; // String | 手机
        String code = code_example; // String | 验证码
        String promotionCode = promotionCode_example; // String | 推广码
        try {
            DefaultResponse result = apiInstance.register(mobile, code, promotionCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#register");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.H5Api;

public class H5ApiExample {

    public static void main(String[] args) {
        H5Api apiInstance = new H5Api();
        String mobile = mobile_example; // String | 手机
        String code = code_example; // String | 验证码
        String promotionCode = promotionCode_example; // String | 推广码
        try {
            DefaultResponse result = apiInstance.register(mobile, code, promotionCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#register");
            e.printStackTrace();
        }
    }
}
String *mobile = mobile_example; // 手机
String *code = code_example; // 验证码
String *promotionCode = promotionCode_example; // 推广码

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

// 注册
[apiInstance registerWith:mobile
    code:code
    promotionCode:promotionCode
              completionHandler: ^(DefaultResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ServerApi = require('server_api');

var api = new ServerApi.H5Api()

var mobile = mobile_example; // {String} 手机

var code = code_example; // {String} 验证码

var promotionCode = promotionCode_example; // {String} 推广码


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.register(mobile, code, promotionCode, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class registerExample
    {
        public void main()
        {
            
            var apiInstance = new H5Api();
            var mobile = mobile_example;  // String | 手机
            var code = code_example;  // String | 验证码
            var promotionCode = promotionCode_example;  // String | 推广码

            try
            {
                // 注册
                DefaultResponse result = apiInstance.register(mobile, code, promotionCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling H5Api.register: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\H5Api();
$mobile = mobile_example; // String | 手机
$code = code_example; // String | 验证码
$promotionCode = promotionCode_example; // String | 推广码

try {
    $result = $api_instance->register($mobile, $code, $promotionCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling H5Api->register: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::H5Api;

my $api_instance = WWW::SwaggerClient::H5Api->new();
my $mobile = mobile_example; # String | 手机
my $code = code_example; # String | 验证码
my $promotionCode = promotionCode_example; # String | 推广码

eval { 
    my $result = $api_instance->register(mobile => $mobile, code => $code, promotionCode => $promotionCode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling H5Api->register: $@\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.H5Api()
mobile = mobile_example # String | 手机
code = code_example # String | 验证码
promotionCode = promotionCode_example # String | 推广码

try: 
    # 注册
    api_response = api_instance.register(mobile, code, promotionCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling H5Api->register: %s\n" % e)

Parameters

Form parameters
Name Description
mobile*
String
手机
Required
code*
String
验证码
Required
promotionCode*
String
推广码
Required

Responses

Status: 200 -


submitTaskRecord

提交任务


/api/task_record/_submit

Usage and SDK Samples

curl -X POST "http://127.0.0.1:42135/api/task_record/_submit"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.H5Api;

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

public class H5ApiExample {

    public static void main(String[] args) {
        
        H5Api apiInstance = new H5Api();
        String taskRecordCode = taskRecordCode_example; // String | 任务编号
        try {
            DefaultResponse result = apiInstance.submitTaskRecord(taskRecordCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#submitTaskRecord");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.H5Api;

public class H5ApiExample {

    public static void main(String[] args) {
        H5Api apiInstance = new H5Api();
        String taskRecordCode = taskRecordCode_example; // String | 任务编号
        try {
            DefaultResponse result = apiInstance.submitTaskRecord(taskRecordCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling H5Api#submitTaskRecord");
            e.printStackTrace();
        }
    }
}
String *taskRecordCode = taskRecordCode_example; // 任务编号

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

// 提交任务
[apiInstance submitTaskRecordWith:taskRecordCode
              completionHandler: ^(DefaultResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ServerApi = require('server_api');

var api = new ServerApi.H5Api()

var taskRecordCode = taskRecordCode_example; // {String} 任务编号


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

namespace Example
{
    public class submitTaskRecordExample
    {
        public void main()
        {
            
            var apiInstance = new H5Api();
            var taskRecordCode = taskRecordCode_example;  // String | 任务编号

            try
            {
                // 提交任务
                DefaultResponse result = apiInstance.submitTaskRecord(taskRecordCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling H5Api.submitTaskRecord: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\H5Api();
$taskRecordCode = taskRecordCode_example; // String | 任务编号

try {
    $result = $api_instance->submitTaskRecord($taskRecordCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling H5Api->submitTaskRecord: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::H5Api;

my $api_instance = WWW::SwaggerClient::H5Api->new();
my $taskRecordCode = taskRecordCode_example; # String | 任务编号

eval { 
    my $result = $api_instance->submitTaskRecord(taskRecordCode => $taskRecordCode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling H5Api->submitTaskRecord: $@\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.H5Api()
taskRecordCode = taskRecordCode_example # String | 任务编号

try: 
    # 提交任务
    api_response = api_instance.submit_task_record(taskRecordCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling H5Api->submitTaskRecord: %s\n" % e)

Parameters

Form parameters
Name Description
taskRecordCode*
String
任务编号
Required

Responses

Status: 200 -