[go: up one dir, main page]

CN111966426A - An API docking method, system, device and storage medium - Google Patents

An API docking method, system, device and storage medium Download PDF

Info

Publication number
CN111966426A
CN111966426A CN201910417460.7A CN201910417460A CN111966426A CN 111966426 A CN111966426 A CN 111966426A CN 201910417460 A CN201910417460 A CN 201910417460A CN 111966426 A CN111966426 A CN 111966426A
Authority
CN
China
Prior art keywords
sandbox
user account
user
api
production
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910417460.7A
Other languages
Chinese (zh)
Inventor
黄旭杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SF Technology Co Ltd
Original Assignee
SF Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SF Technology Co Ltd filed Critical SF Technology Co Ltd
Priority to CN201910417460.7A priority Critical patent/CN111966426A/en
Publication of CN111966426A publication Critical patent/CN111966426A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/52Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
    • G06F21/53Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow by executing in a restricted environment, e.g. sandbox or secure virtual machine

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明涉及一种API对接方法、系统、设备及存储介质,包括:根据用户账户请求信息为所述用户账户配置沙盒测试环境;将在沙盒测试环境中上传交易凭证信息的成功次数作为用户账户通过沙盒测试的判断因素;对通过沙盒测试的用户账户的生产请求信息进行审核;验证生成请求信息通过审核的用户账户的生产密钥,完成与所述用户账户的API对接。本发明能够自动完成与用户的API对接,使API对接流程的自动化程度大大提升,且无需人工进行繁琐的审批流程,API对接的效率也大大提升,增强了用户体验,节省了大量时间。

Figure 201910417460

The invention relates to an API docking method, system, device and storage medium, comprising: configuring a sandbox test environment for the user account according to user account request information; The judging factor for the account to pass the sandbox test; review the production request information of the user account that has passed the sandbox test; verify the production key of the user account whose generation request information has passed the review, and complete the API docking with the user account. The invention can automatically complete the API docking with the user, so that the automation degree of the API docking process is greatly improved, and there is no need to manually carry out the cumbersome approval process, the efficiency of the API docking is also greatly improved, the user experience is enhanced, and a lot of time is saved.

Figure 201910417460

Description

一种API对接方法、系统、设备及存储介质An API docking method, system, device and storage medium

技术领域technical field

本发明涉及API技术领域,尤其涉及一种API对接方法、系统、设备及存储介质。The present invention relates to the technical field of API, and in particular, to an API docking method, system, device and storage medium.

背景技术Background technique

API(Application Programming Interface,应用程序编程接口)是一些预先定义的函数,目的是提供应用程序与开发人员基于某软件或硬件得以访问一组例程的能力,而又无需访问源码,或理解内部工作机制的细节。基于互联网的应用正变得越来越普及,在这个过程中,有更多的站点将自身的资源开放给开发者来调用。对外提供的API调用使得站点之间的内容关联性更强,同时这些开放的平台也为用户、开发者和中小网站带来了更大的价值。现在电商越来越多采用API对接技术为客户提供更多线上服务。APIs (Application Programming Interfaces) are predefined functions designed to provide applications and developers with the ability to access a set of routines based on a piece of software or hardware without having to access the source code or understand the inner workings Details of the mechanism. Internet-based applications are becoming more and more popular, and in the process, more sites open their own resources to developers to call. The API calls provided externally make the content between sites more relevant, and these open platforms also bring greater value to users, developers, and small and medium-sized websites. Nowadays, more and more e-commerce companies use API docking technology to provide customers with more online services.

目前公知的物流及快递行业客户对接API流程,先由客户向提供API 的公司销售人员对接,然后申请ECP流程,ECP流程归档后,然后由销售人员提供API接口规范文档给客户,然后由测试人员和客户研发人员进行对接,联调完毕后再申请生产环境,流程繁琐不便于快速接入。客户对接过程中,需要过多人工配合对接,容易造成瓶颈。一方面造成高昂的沟通成本,另一方面影响对接的进度,从而直接影响公司业务的发展。The current well-known logistics and express industry customer docking API process, first, the customer connects with the sales staff of the company that provides API, and then applies for the ECP process, after the ECP process is archived, the sales staff provides the API interface specification document to the customer, and then the tester provides the API interface specification document to the customer. Connect with customer R&D personnel, and apply for production environment after joint debugging. The process is cumbersome and inconvenient for quick access. In the process of customer docking, too much manual coordination is required, which can easily cause bottlenecks. On the one hand, it causes high communication costs, and on the other hand, it affects the progress of docking, which directly affects the development of the company's business.

发明内容SUMMARY OF THE INVENTION

为了解决上述技术问题,本发明的目的在于提供一种API对接方法、系统、设备及存储介质。In order to solve the above technical problems, the purpose of the present invention is to provide an API docking method, system, device and storage medium.

根据本发明的一个方面,提供了一种API对接方法,包括:According to one aspect of the present invention, an API docking method is provided, comprising:

根据用户账户请求信息为所述用户账户配置沙盒测试环境;Configure a sandbox testing environment for the user account according to the user account request information;

将在沙盒测试环境中上传交易凭证信息的成功次数作为用户账户通过沙盒测试的判断因素;The number of successful times of uploading transaction voucher information in the sandbox test environment is used as the judgment factor for the user account to pass the sandbox test;

对通过沙盒测试的用户账户的生产请求信息进行审核;Review the production request information of user accounts that pass the sandbox test;

验证生成请求信息通过审核的用户账户的生产密钥,完成与所述用户账户的API对接。It is verified that the generation request information passes through the production key of the audited user account, and the API docking with the user account is completed.

进一步的,根据用户账户请求信息为所述用户账户配置沙盒测试环境,包括:Further, configure a sandbox testing environment for the user account according to the user account request information, including:

根据用户注册信息生成API对接账户;Generate an API docking account based on user registration information;

根据用户账户配置的API接口基础参数生成相应的沙盒测试环境;Generate the corresponding sandbox test environment according to the basic parameters of the API interface configured by the user account;

根据所述注册信息向用户发送沙盒测试环境密钥;Send the sandbox test environment key to the user according to the registration information;

通过验证用户的沙盒测试环境密钥为用户账户配置所述相应沙盒测试环境。The corresponding sandbox test environment is configured for the user account by validating the user's sandbox test environment key.

进一步的,将在沙盒测试环境中上传交易凭证信息的成功次数作为用户账户通过沙盒测试的判断因素,包括:Further, the number of successful times of uploading transaction credential information in the sandbox test environment will be used as a judgment factor for the user account to pass the sandbox test, including:

设置沙盒测试期限;Set the sandbox testing period;

记录所述测试期限内用户账户上传交易凭证信息的成功次数;Record the number of successful times of uploading transaction credential information by the user account within the test period;

判断所述成功次数是否达到预设次数:Determine whether the number of successes reaches a preset number:

是,则判定所述用户账户通过沙盒测试;If yes, it is determined that the user account has passed the sandbox test;

否,则判定所述用户账户未通过沙盒测试,并返回错误提示。If not, it is determined that the user account has failed the sandbox test, and an error message is returned.

进一步的,验证生成请求信息通过审核的用户账户的生产密钥,完成与所述用户账户的API对接,包括:Further, verifying that the generation request information passes the production key of the audited user account, and completes the API docking with the user account, including:

判断所述生产请求信息是否通过审核:Determine whether the production request information has passed the audit:

是,则向用户发送生产配置密钥并通过验证用户的生产配置密钥完成与用户的API对接;If yes, send the production configuration key to the user and complete the API connection with the user by verifying the user's production configuration key;

否,则返回生产请求信息审核失败和失败原因。If not, it returns the production request information audit failure and the reason for the failure.

根据本发明的另一个方面,提供了一种API对接系统,包括:According to another aspect of the present invention, an API docking system is provided, comprising:

初始配置单元,配置用于根据用户账户请求信息为所述用户账户配置沙盒测试环境;an initial configuration unit, configured to configure a sandbox testing environment for the user account according to the user account request information;

沙盒测试单元,配置将在沙盒测试环境中上传交易凭证信息的成功次数作为用户账户通过沙盒测试的判断因素;The sandbox test unit is configured to use the number of successful uploading of transaction credentials in the sandbox test environment as a judging factor for the user account to pass the sandbox test;

生产审核单元,配置用于对通过沙盒测试的用户账户的生产请求信息进行审核;The production audit unit is configured to audit the production request information of the user account that has passed the sandbox test;

对接完成单元,配置用于验证生成请求信息通过审核的用户账户的生产密钥,完成与所述用户账户的API对接。The docking completion unit is configured to verify the production key of the user account whose generation request information has passed the audit, and complete the API docking with the user account.

进一步的,初始配置单元包括:Further, the initial configuration unit includes:

账户生成模块,配置用于根据用户注册信息生成API对接账户;The account generation module is configured to generate an API docking account according to the user registration information;

沙盒生成模块,配置用于根据用户账户配置的API接口基础参数生成相应的沙盒测试环境;The sandbox generation module is configured to generate the corresponding sandbox test environment according to the basic parameters of the API interface configured by the user account;

沙盒密钥模块,配置用于根据所述注册信息向用户发送沙盒测试环境密钥;A sandbox key module, configured to send a sandbox test environment key to the user according to the registration information;

沙盒配置模块,配置用于通过验证用户的沙盒测试环境密钥为用户账户配置所述相应沙盒测试环境。The sandbox configuration module is configured to configure the corresponding sandbox test environment for the user account by verifying the user's sandbox test environment key.

进一步的,沙盒测试单元包括:Further, the sandbox testing unit includes:

期限设置模块,配置用于设置沙盒测试期限;The deadline setting module is configured to set the sandbox testing deadline;

次数记录模块,配置用于记录所述测试期限内用户账户上传交易凭证信息的成功次数;A times recording module, configured to record the successful times of uploading transaction credential information by the user account within the test period;

次数判断模块,配置用于判断所述成功次数是否达到预设次数;a number of times judgment module, configured to judge whether the number of successful times reaches a preset number of times;

测试通过模块,配置用于判定所述用户账户通过沙盒测试;A test pass module, configured to determine that the user account passes the sandbox test;

测试失败模块,配置用于判定所述用户账户未通过沙盒测试,并返回错误提示。The test failure module is configured to determine that the user account fails the sandbox test, and returns an error prompt.

进一步的,对接完成单元包括:Further, the docking completion unit includes:

生产判断模块,配置用于判断所述生产请求信息是否通过审核;A production judging module, configured to judge whether the production request information passes the audit;

验证对接模块,配置用于向用户发送生产配置密钥并通过验证用户的生产配置密钥完成与用户的API对接;The verification docking module is configured to send the production configuration key to the user and complete the API docking with the user by verifying the user's production configuration key;

失败返回模块,配置用于返回生产请求信息审核失败和失败原因。The failure return module is configured to return the production request information audit failure and the reason for the failure.

另外,本发明还提供一种设备,包括:In addition, the present invention also provides a device, comprising:

一个或多个处理器;one or more processors;

存储器,用于存储一个或多个程序,memory for storing one or more programs,

当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器执行如上任一项所述的方法。The one or more programs, when executed by the one or more processors, cause the one or more processors to perform a method as described in any of the above.

根据本发明的另一个方面,提供了一种存储有计算机程序的计算机可读存储介质,该程序被处理器执行时实现如上任一项所述的方法。According to another aspect of the present invention, there is provided a computer-readable storage medium storing a computer program, the program implementing the method according to any one of the above when executed by a processor.

与现有技术相比,本发明具有以下有益效果:Compared with the prior art, the present invention has the following beneficial effects:

1、本发明示例的一种API对接方法,通过根据用户账户请求信息为所述用户账户配置沙盒测试环境,其中用户账户请求信息包括用户根据自身业务需要对请求对接的API接口的基础参数的选择设置,根据用户账户请求信息为用户配置沙盒测试环境可以使用户可以根据自身业务需要对API接口进行选择,提升了用户体验。用户进入沙盒测试环节后,将在沙盒测试环境中上传交易凭证信息的成功次数作为用户账户通过沙盒测试的判断因素,由于用户上传交易凭证信息是在沙盒环境中进行,用户上传的信息以及修改信息的操作都不会对API提供方的系统造成影响,保证了API提供方系统的安全性。对通过沙盒测试的用户账户的生产请求信息进行审核,验证生成请求信息通过审核的用户账户的生产密钥,完成与所述用户账户的API对接。通过沙盒测试后,用户进入生产审核环节,生产审核环节不在沙盒环境中进行,其中生产请求信息是自动审核,无需人工审核,生产请求审核通过后,API对接完成,可以正常使用。本发明能够自动完成与用户的 API对接,使API对接流程的自动化程度大大提升,且无需人工进行繁琐的审批流程,API对接的效率也大大提升,增强了用户体验,节省了大量时间。1. An API docking method of the example of the present invention configures a sandbox test environment for the user account according to the user account request information, wherein the user account request information includes the basic parameters of the API interface that the user requests for docking according to his own business needs. Selecting settings and configuring a sandbox testing environment for users based on user account request information allows users to select API interfaces according to their own business needs, improving user experience. After the user enters the sandbox test, the number of successful uploads of transaction voucher information in the sandbox test environment will be used as the judgment factor for the user account to pass the sandbox test. Since the user uploads the transaction voucher information in the sandbox environment, the user uploads The information and the operation of modifying the information will not affect the API provider's system, which ensures the security of the API provider's system. Review the production request information of the user account that has passed the sandbox test, verify that the production key of the user account whose request information has passed the review is generated, and complete the API docking with the user account. After passing the sandbox test, the user enters the production review process. The production review process is not carried out in the sandbox environment. The production request information is automatically reviewed without manual review. After the production request is approved, the API connection is completed and can be used normally. The present invention can automatically complete the API docking with the user, so that the automation degree of the API docking process is greatly improved, and no manual cumbersome approval process is required, the efficiency of the API docking is also greatly improved, the user experience is enhanced, and a lot of time is saved.

2、本发明示例的一种API对接系统,通过初始配置单元根据用户账户请求信息为所述用户账户配置沙盒测试环境,其中用户账户请求信息包括用户根据自身业务需要对请求对接的API接口的基础参数的选择设置,根据用户账户请求信息为用户配置沙盒测试环境可以使用户可以根据自身业务需要对API接口进行选择,提升了用户体验。用户进入沙盒测试环节后,通过沙盒测试单元将在沙盒测试环境中上传交易凭证信息的成功次数作为用户账户通过沙盒测试的判断因素,由于用户上传交易凭证信息是在沙盒环境中进行,用户上传的信息以及修改信息的操作都不会对API提供方的系统造成影响,保证了API提供方系统的安全性。对通过沙盒测试的用户账户的生产请求信息进行审核,验证生成请求信息通过审核的用户账户的生产密钥,完成与所述用户账户的API对接。通过沙盒测试后,用户进入生产审核环节,生产审核环节不在沙盒环境中进行,其中生产请求信息是自动审核,无需人工审核,生产请求审核通过后,API对接完成,可以正常使用。本发明能够自动完成与用户的API对接,使API对接流程的自动化程度大大提升,且无需人工进行繁琐的审批流程,API对接的效率也大大提升,增强了用户体验,节省了大量时间。2. An API docking system exemplified in the present invention configures a sandbox test environment for the user account according to the user account request information through the initial configuration unit, wherein the user account request information includes the user's request for docking API interface according to his own business needs. The selection and setting of basic parameters and the configuration of the sandbox test environment for users according to the user account request information allows users to select API interfaces according to their own business needs, which improves the user experience. After the user enters the sandbox testing session, the sandbox testing unit takes the number of successful uploading of transaction voucher information in the sandbox test environment as the judgment factor for the user account to pass the sandbox test. Since the user uploads transaction voucher information in the sandbox environment The information uploaded by the user and the operation of modifying the information will not affect the API provider's system, which ensures the security of the API provider's system. Review the production request information of the user account that has passed the sandbox test, verify that the production key of the user account whose request information has passed the review is generated, and complete the API docking with the user account. After passing the sandbox test, the user enters the production review process. The production review process is not carried out in the sandbox environment. The production request information is automatically reviewed without manual review. After the production request is approved, the API connection is completed and can be used normally. The invention can automatically complete the API docking with the user, so that the automation degree of the API docking process is greatly improved, and there is no need to manually carry out the cumbersome approval process, the efficiency of the API docking is also greatly improved, the user experience is enhanced, and a lot of time is saved.

3、本发明中示例的设备,通过处理器执行API对接方法,能够更快速地完成API对接,提高服务质量。3. The device exemplified in the present invention can complete the API docking more quickly and improve the service quality by executing the API docking method through the processor.

4、本发明中示例的可读存储介质,储存有被处理器执行时实现的所述API对接方法,便于与用户的API对接。4. The readable storage medium exemplified in the present invention stores the API docking method implemented when executed by the processor, so as to facilitate docking with the user's API.

附图说明Description of drawings

图1为本发明流程图。Fig. 1 is a flow chart of the present invention.

图2是本发明的设备的结构示意图。FIG. 2 is a schematic structural diagram of the apparatus of the present invention.

具体实施方式Detailed ways

为了更好的了解本发明的技术方案,下面结合具体实施例、说明书附图对本发明作进一步说明。In order to better understand the technical solutions of the present invention, the present invention will be further described below with reference to specific embodiments and accompanying drawings.

实施例1:Example 1:

本实施例提供一种API对接系统,包括:This embodiment provides an API docking system, including:

初始配置单元,配置用于根据用户账户请求信息为所述用户账户配置沙盒测试环境;an initial configuration unit, configured to configure a sandbox testing environment for the user account according to the user account request information;

沙盒测试单元,配置将在沙盒测试环境中上传交易凭证信息的成功次数作为用户账户通过沙盒测试的判断因素;The sandbox test unit is configured to use the number of successful uploading of transaction credentials in the sandbox test environment as a judging factor for the user account to pass the sandbox test;

生产审核单元,配置用于对通过沙盒测试的用户账户的生产请求信息进行审核;The production audit unit is configured to audit the production request information of the user account that has passed the sandbox test;

对接完成单元,配置用于验证生成请求信息通过审核的用户账户的生产密钥,完成与所述用户账户的API对接。The docking completion unit is configured to verify the production key of the user account whose generation request information has passed the audit, and complete the API docking with the user account.

本实施例,通过自动API对接的流程,用户根据业务需要,选择下订单接口和订单筛选接口,并按照要求配置下订单接口的基础信息以及订单筛选接口的基础信息,例如,如有接口配置选项的如下订单接口,则需要绑定的月结卡号为正确合法的,确认是否需要使用路由标签等。如无接口配置选项如订单筛选接口,默认配置即可。配置完成后通过沙盒测试和生产环境审核即可完成API对接。In this embodiment, through the process of automatic API docking, the user selects the order placing interface and the order screening interface according to business needs, and configures the basic information of the order placing interface and the basic information of the order screening interface as required. For example, if there is an interface configuration option For the following order interface, you need to bind the monthly account number to be correct and legal, and confirm whether you need to use the routing label. If there is no interface configuration option such as order filtering interface, the default configuration is sufficient. After the configuration is complete, the API connection can be completed through sandbox testing and production environment review.

其中,初始配置单元包括:Among them, the initial configuration unit includes:

账户生成模块,配置用于根据用户注册信息生成API对接账户;The account generation module is configured to generate an API docking account according to the user registration information;

沙盒生成模块,配置用于根据用户账户配置的API接口基础参数生成相应的沙盒测试环境;The sandbox generation module is configured to generate the corresponding sandbox test environment according to the basic parameters of the API interface configured by the user account;

沙盒密钥模块,配置用于根据所述注册信息向用户发送沙盒测试环境密钥;A sandbox key module, configured to send a sandbox test environment key to the user according to the registration information;

沙盒配置模块,配置用于通过验证用户的沙盒测试环境密钥为用户账户配置所述相应沙盒测试环境。The sandbox configuration module is configured to configure the corresponding sandbox test environment for the user account by verifying the user's sandbox test environment key.

沙盒测试单元包括:Sandbox testing units include:

期限设置模块,配置用于设置沙盒测试期限;The deadline setting module is configured to set the sandbox testing deadline;

次数记录模块,配置用于记录所述测试期限内用户账户上传交易凭证信息的成功次数;A times recording module, configured to record the successful times of uploading transaction credential information by the user account within the test period;

次数判断模块,配置用于判断所述成功次数是否达到预设次数;a number of times judgment module, configured to judge whether the number of successful times reaches a preset number of times;

测试通过模块,配置用于判定所述用户账户通过沙盒测试;A test pass module, configured to determine that the user account passes the sandbox test;

测试失败模块,配置用于判定所述用户账户未通过沙盒测试,并返回错误提示。The test failure module is configured to determine that the user account fails the sandbox test, and returns an error prompt.

对接完成单元包括:The docking completion unit includes:

生产判断模块,配置用于判断所述生产请求信息是否通过审核;A production judging module, configured to judge whether the production request information passes the audit;

验证对接模块,配置用于向用户发送生产配置密钥并通过验证用户的生产配置密钥完成与用户的API对接;The verification docking module is configured to send the production configuration key to the user and complete the API docking with the user by verifying the user's production configuration key;

失败返回模块,配置用于返回生产请求信息审核失败和失败原因。The failure return module is configured to return the production request information audit failure and the reason for the failure.

本实施例API对接系统,先通过初始配置单元根据用户账户请求信息为所述用户账户配置沙盒测试环境沙箱测试环境,再由沙盒测试单元将在沙盒测试环境中上传交易凭证信息的成功次数作为用户账户通过沙盒测试的判断因素。生产审核单元对通过沙盒测试的用户发送的生产配置请求进行审核,对接完成单元通过向生产配置请求通过审核的用户下发密钥并验证密钥,完成API对接,API接口可以在生产环境中使用。本发明能够自动完成与用户的API对接,减少地区销售同事上门对接客户工作,降低企业人力成本;减少流程审批程序,实现零ECP审批流程,提升企业的工作效率;降低客户的学习成本,使客户能够快速完成API对接操作。In the API docking system of this embodiment, the initial configuration unit first configures a sandbox test environment for the user account according to the user account request information, and then the sandbox test unit uploads the transaction credential information in the sandbox test environment. The number of successes is used as a judging factor for the user account to pass the sandbox test. The production audit unit audits the production configuration requests sent by the users who have passed the sandbox test, and the docking completion unit completes the API docking by issuing and verifying the keys to the users whose production configuration requests have passed the audit. The API interface can be used in the production environment. use. The invention can automatically complete the API docking with the user, reduce the work of regional sales colleagues to connect with customers, and reduce the labor cost of the enterprise; reduce the process approval procedure, realize the zero ECP approval process, and improve the work efficiency of the enterprise; It can quickly complete the API docking operation.

以对接丰桥平台为例,对本发明提供上述API对接系统对应的API 对接方法进行说明,包括:Taking the docking platform of Fengqiao as an example, the API docking method corresponding to the above-mentioned API docking system provided by the present invention is described, including:

S1、根据用户账户请求信息为所述用户账户配置沙盒测试环境。S1. Configure a sandbox testing environment for the user account according to the user account request information.

根据用户录入的注册信息生成用户账户,注册信息包括公司名称、对接负责人员联系方式等。用户登录账户后根据业务需求选择所需的 API接口并配置相应的基础参数,用户根据业务需要,选择下订单接口和订单筛选接口,并按照要求配置下订单接口的基础信息以及订单筛选接口的基础信息,例如,如有接口配置选项的如下订单接口,则需要绑定的月结卡号为正确合法的,确认是否需要使用路由标签等。如无接口配置选项如订单筛选接口,默认配置即可。在本发明的其他实施方式中,若API接口提供方的平台只有一个API接口提供给客户,则客户无需进行API接口的选择和基础参数配置。The user account is generated according to the registration information entered by the user, and the registration information includes the company name, the contact information of the person in charge of the connection, etc. After logging in to the account, the user selects the required API interface and configures the corresponding basic parameters according to the business needs. The user selects the order placing interface and the order screening interface according to the business needs, and configures the basic information of the order placing interface and the basis of the order screening interface according to the requirements. For example, if there is the following order interface of the interface configuration option, the monthly account number that needs to be bound is correct and legal, and it is necessary to confirm whether the routing label needs to be used. If there is no interface configuration option such as order filtering interface, the default configuration is sufficient. In other embodiments of the present invention, if the platform of the API interface provider has only one API interface provided to the client, the client does not need to select an API interface and configure basic parameters.

用户根据业务需要配置完需要对接的API接口后,向上层系统(给客户实际使用API接口的系统,如丰桥平台)发送请求信息,上层系统根据请求信息生成沙盒测试环境,如用户请求信息选择的是下订单接口,就生成下订单接口的沙盒测试环境。上层系统根据用户账户的注册信息(对接负责人员的联系方式)向用户下发沙盒测试环境使用密钥,用户输入沙盒测试环境使用密钥即可进入沙盒测试环境,用户对该沙盒测试环境的使用时限为7×24h。在计算机安全领域,本申请沙盒环境(也称为沙箱环境,英文sandbox):是指测试环境和开发环境,是提供给开发者开发和测试用的环境,沙盒测试是指在产品未上线前在内部环境或网络下进行的测试,是一种安全机制,为运行中的程序提供的隔离环境。通常是作为一些来源不可信、具破坏力或无法判定程序意图的程序提供实验之用。因此用户上传至沙盒测试环境的信息以及对沙盒测试环境中的信息进行的修改操作均不会影响到上层系统,保证上层系统的安全性。After the user configures the API interface that needs to be connected according to the business needs, the user sends the request information to the upper-layer system (the system that the customer actually uses the API interface, such as the Fengqiao platform), and the upper-layer system generates the sandbox test environment according to the request information, such as the user request information. If the order interface is selected, the sandbox test environment of the order interface is generated. The upper-layer system issues the sandbox test environment use key to the user according to the registration information of the user account (the contact information of the person in charge), and the user enters the sandbox test environment use key to enter the sandbox test environment. The use time limit of the test environment is 7×24h. In the field of computer security, the application sandbox environment (also known as sandbox environment, English sandbox): refers to the test environment and development environment, which is provided to developers for development and testing. Testing performed in an internal environment or network before going live is a security mechanism that provides an isolated environment for running programs. It is usually used for experimentation with programs whose sources are untrustworthy, destructive, or whose intent cannot be determined. Therefore, neither the information uploaded by the user to the sandbox test environment nor the modification operations performed on the information in the sandbox test environment will affect the upper-layer system, ensuring the security of the upper-layer system.

S2、将在沙盒测试环境中上传交易凭证信息的成功次数作为用户账户通过沙盒测试的判断因素。S2. The number of successful times of uploading transaction credential information in the sandbox test environment is taken as a judging factor for the user account to pass the sandbox test.

本实施例中,将预设次数设置为3次,交易凭证信息为用户的电子面单。对用户上传的电子面单进行审核,后端审核电子面单的模板是否符合要求,电子面单上是否包含下单信息,条形码时是否符合编码规范、是否终端可以扫码识别等等,目前固定审核不通过的情况有以下几点:1、面单格式不符合规范2、属于自行设计的电子面单3、非最新模板电子面单4、非电子面单图片5、面单上没有需包含的测试数据。若用户上传的电子面单未通过审核,则返回电子面单上传失败的提示,以及失败原因,以便用户改进。若电子面单通过审核,则将电子面单上传至上层系统,并记录。电子面单在未通过审核前用户可进行修改,通过审核后不可再进行修改。在沙盒测试环境有效期限内(7×24h),判断用户上传电子面单的成功次数是否达到3次,若达到3次,则判定用户通过沙盒测试,进入步骤S3的生产审核环节。若用户上传电子面单的成功次数未达到3次,则判定用户沙盒测试未通过,并返回失败提示。In this embodiment, the preset number of times is set to 3 times, and the transaction voucher information is the user's electronic receipt. Review the electronic face sheet uploaded by the user, check whether the template of the electronic face sheet meets the requirements, whether the electronic face sheet contains the order information, whether the barcode conforms to the coding specification, whether the terminal can scan the code for identification, etc., currently fixed The following points are not approved: 1. The format of the face sheet does not conform to the specification 2. The electronic face sheet is self-designed 3. The electronic face sheet is not the latest template 4. The picture of the non-electronic face sheet is not required to be included on the face sheet of test data. If the electronic form uploaded by the user fails to pass the review, the notification of failure to upload the electronic form and the reason for the failure will be returned so that the user can improve. If the electronic bill is approved, upload the electronic bill to the upper-level system and record it. The user can modify the electronic bill before it has passed the review, and it cannot be modified after passing the review. Within the validity period of the sandbox test environment (7×24h), it is judged whether the number of times the user has successfully uploaded the electronic face sheet has reached 3 times, and if it reaches 3 times, it is judged that the user has passed the sandbox test and entered the production audit link of step S3. If the number of successful times of uploading electronic face slips by the user does not reach 3, it will be determined that the user's sandbox test has not passed, and a failure prompt will be returned.

S3、对通过沙盒测试的用户账户的生产请求信息进行审核。S3. Review the production request information of the user account that has passed the sandbox test.

通过沙盒测试的用户账户,从沙箱环境到生产环境,可以根据客户申请API的流程状态动态过渡。用户上传生产请求信息,生产请求信息主要包括公司信息中的公司名称、地址及证照信息、月结卡号。审核是否通过参考该客户是否为公司的月结客户并且在月结客户平台有对应的客户信息(本系统与月结客户平台有数据同步,可以实时查询到最新公司的月结客户信息)。若用户上传的生产请求信息是能够查找到匹配的客户公司信息和月结卡号的,就判定生产请求信息通过验证。若用户上传的生产请求信息查询不到,就向用户返回生产信息无法通过验证的提示,并显示未通过的原因,以便用户进行修改。User accounts that have passed the sandbox test can dynamically transition from the sandbox environment to the production environment according to the process status of the customer's application for API. The user uploads the production request information. The production request information mainly includes the company name, address, license information, and monthly card number in the company information. Check whether the customer is the company's monthly account customer and has corresponding customer information on the monthly account customer platform (this system has data synchronization with the monthly account customer platform, and the latest company's monthly account customer information can be queried in real time). If the production request information uploaded by the user can find the matching customer company information and monthly card number, it is determined that the production request information has passed the verification. If the production request information uploaded by the user cannot be queried, it will return to the user a prompt that the production information cannot pass the verification, and display the reason for the failure, so that the user can modify it.

S4、验证生成请求信息通过审核的用户账户的生产密钥,完成与所述用户账户的API对接。S4. Verify the production key of the user account whose generation request information has passed the audit, and complete the API docking with the user account.

用户生产请求信息通过验证后,向用户下发生产配置密钥(可以发送至对接负责人员的预留的邮箱等)用户将接收到的生产配置密钥录入系统,系统对用户录入的生产配置密钥验证后,该用户账户进入生产环境,完成API对接,可以正常使用。After the user's production request information is verified, the production configuration key is issued to the user (which can be sent to the reserved mailbox of the person in charge of the docking, etc.) The user enters the received production configuration key into the system, and the system records the production configuration key entered by the user. After the key verification, the user account enters the production environment, completes the API connection, and can be used normally.

将用户信息存储至API对接完成数据库。若用户账户被冻结,冻结用户即调API配置接口,传TYPE为DELETE,API状态都为信息初始化,删除用户在API对接完成数据库中的所有数据,由此可以禁止使用 API所有功能。用户需要解除冻结重新对接API时,需要重新进行API 接口基础参数配置并发送请求,进行沙盒测试和生成环境审核。完成上述环节后用户的接口状态恢复正常使用状态。Store user information in the API connection completion database. If the user account is frozen, the frozen user will call the API configuration interface, pass the TYPE as DELETE, and the API status will be information initialization, delete all the data in the database after the user has completed the API connection, thus prohibiting the use of all functions of the API. When the user needs to unfreeze the API and re-connect to the API, he needs to configure the basic parameters of the API interface and send a request again to perform sandbox testing and production environment review. After the above steps are completed, the interface status of the user returns to the normal use status.

若已对接有API接口的用户需要对接其他类型的API接口,用户需要重新配置需要对接的API接口基础参数发送请求进行沙盒测试。If a user who has connected to an API interface needs to connect to another type of API interface, the user needs to reconfigure the basic parameters of the API interface to be connected to send a request for sandbox testing.

若用户需要将自己的权限由月结客户改为多月结客户,只需要重新通过生产环境审核环节即可,无需再通过沙盒测试。If users need to change their permissions from monthly account customers to multi-month account customers, they only need to pass the production environment review process again, and no need to pass the sandbox test.

本实施例的一种设备,所述设备包括:一个或多个处理器;A device in this embodiment, the device includes: one or more processors;

存储器,用于存储一个或多个程序,memory for storing one or more programs,

当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器执行上述任一项所述的方法,通过处理器执行API 对接方法,能够更快速地完成API对接,提高服务质量。When the one or more programs are executed by the one or more processors, the one or more processors are made to execute any of the methods described above, and the API docking method can be executed more quickly by the processors. Complete API docking and improve service quality.

本实施例的一种存储有计算机程序的计算机可读存储介质,其特征是,该程序被处理器执行时实现上述任一项所述的方法,储存有被处理器执行时实现的所述API对接方法,便于与用户的API对接。进一步介绍如下:A computer-readable storage medium storing a computer program in this embodiment is characterized in that, when the program is executed by a processor, any one of the methods described above is implemented, and the API implemented when executed by the processor is stored. The docking method is convenient for docking with the user's API. Further introduction is as follows:

计算机系统包括中央处理单元(CPU)101,其可以根据存储在只读存储器(ROM)102中的程序或者从存储部分加载到随机访问存储器(RAM)103 中的程序而执行各种适当的动作和处理。在RAM103中,还存储有系统操作所需的各种程序和数据。CPU 101、ROM 102以及RAM 103通过总线104 彼此相连。输入/输出(I/O)接口105也连接至总线104。The computer system includes a central processing unit (CPU) 101 that can perform various appropriate actions and in accordance with a program stored in a read only memory (ROM) 102 or a program loaded from a storage portion into a random access memory (RAM) 103. deal with. In the RAM 103, various programs and data necessary for system operation are also stored. The CPU 101 , the ROM 102 , and the RAM 103 are connected to each other through a bus 104 . An input/output (I/O) interface 105 is also connected to the bus 104 .

以下部件连接至I/O接口105:包括键盘、鼠标等的输入部分106;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分;包括硬盘等的存储部分108;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分109。通信部分109经由诸如因特网的网络执行通信处理。驱动器也根据需要连接至I/O接口105。可拆卸介质511,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器510 上,以便于从其上读出的计算机程序根据需要被安装入存储部分108。The following components are connected to the I/O interface 105: an input section 106 including a keyboard, a mouse, etc.; an output section including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 108 including a hard disk, etc.; And a communication section 109 including a network interface card such as a LAN card, a modem, and the like. The communication section 109 performs communication processing via a network such as the Internet. Drives are also connected to the I/O interface 105 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 108 as needed.

特别地,根据本发明的实施例,上文参考流程图1描述的过程可以被实现为计算机软件程序。例如,本发明的实施例1包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分从网络上被下载和安装,和/或从可拆卸介质被安装。在该计算机程序被中央处理单元(CPU)101执行时,执行本申请的系统中限定的上述功能。In particular, according to an embodiment of the present invention, the process described above with reference to flowchart 1 may be implemented as a computer software program. For example, Embodiment 1 of the present invention includes a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for executing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion, and/or installed from a removable medium. When the computer program is executed by the central processing unit (CPU) 101, the above-described functions defined in the system of the present application are executed.

需要说明的是,本发明所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本发明中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本发明中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In the present invention, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

附图中的框图2,图示了按照本发明各种实施例1的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。Block diagram 2 of the accompanying drawings illustrates the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments 1 of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented.

描述于本发明实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现,所描述的单元也可以设置在处理器中。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定。所描述的单元或模块也可以设置在处理器中,例如,可以描述为:一种API 对接系统,包括:沙箱测试单元、流程触发单元、请求验证单元、对接完成单元,其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,沙箱测试单元还可以被描述为“用于在沙箱环境中根据对接请求方的交易凭证信息调用API接口并记录调用API接口成功次数的沙箱测试单元”。The units involved in the embodiments of the present invention may be implemented in a software manner, or may be implemented in a hardware manner, and the described units may also be provided in a processor. Among them, the name of these units does not constitute a limitation of the unit itself under certain circumstances. The described unit or module can also be set in the processor. For example, it can be described as: an API docking system, including: a sandbox testing unit, a process triggering unit, a request verification unit, and a docking completion unit, wherein the In some cases, the name does not constitute a limitation on the unit itself. For example, the sandbox test unit can also be described as "used to call the API interface in the sandbox environment according to the transaction credential information of the docking requester and record the calling API A sandbox test unit for interface successes".

作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该电子设备执行时,使得该电子设备实现如上述实施例中所述的API对接方法。As another aspect, the present application also provides a computer-readable medium. The computer-readable medium may be included in the electronic device described in the above embodiments; it may also exist alone without being assembled into the electronic device. middle. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the API docking method described in the above embodiments.

例如,所述电子设备可以实现如图1中所示的:步骤S1:在沙箱环境中根据对接请求方的交易凭证信息调用API接口并记录调用API 接口成功次数;步骤S2:根据所述成功次数触发申请生产流程;步骤 S3:对进入申请生产流程的对接请求发送方的请求信息进行验证并在验证通过后向对接请求发送方发送API生产配置密钥;步骤S4:通过验证对接请求发送方的API生产配置密钥完成与对接请求发送方的 API对接。For example, the electronic device can implement as shown in FIG. 1: Step S1: call the API interface in the sandbox environment according to the transaction credential information of the docking requester and record the number of successful calls to the API interface; Step S2: according to the success The number of times triggers the application production process; Step S3: verify the request information of the docking request sender entering the application production process, and send the API production configuration key to the docking request sender after the verification is passed; Step S4: verify the docking request sender The API production configuration key completes the docking with the API of the docking request sender.

应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the apparatus for action performance are mentioned in the above detailed description, this division is not mandatory. Indeed, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units to be embodied.

此外,尽管在附图中以特定顺序描述了本公开中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选地,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。Additionally, although the various steps of the methods of the present disclosure are depicted in the figures in a particular order, this does not require or imply that the steps must be performed in the particular order or that all illustrated steps must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution, and the like.

以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离所述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于) 具有类似功能。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, and should also cover the above-mentioned technical features without departing from the inventive concept. Other technical solutions formed by any combination of its equivalent features. For example, the above features have similar functions to those disclosed in this application (but not limited to).

Claims (10)

1.一种API对接方法,其特征在于,包括:1. an API docking method, is characterized in that, comprises: 根据用户账户请求信息为所述用户账户配置沙盒测试环境;Configure a sandbox testing environment for the user account according to the user account request information; 将在沙盒测试环境中上传交易凭证信息的成功次数作为用户账户通过沙盒测试的判断因素;The number of successful times of uploading transaction voucher information in the sandbox test environment is used as the judgment factor for the user account to pass the sandbox test; 对通过沙盒测试的用户账户的生产请求信息进行审核;Review the production request information of user accounts that pass the sandbox test; 验证生成请求信息通过审核的用户账户的生产密钥,完成与所述用户账户的API对接。It is verified that the generation request information passes through the production key of the audited user account, and the API docking with the user account is completed. 2.根据权利要求1所述的方法,其特征在于,所述根据用户账户请求信息为所述用户账户配置沙盒测试环境,包括:2. The method according to claim 1, wherein, configuring a sandbox testing environment for the user account according to the user account request information, comprising: 根据用户注册信息生成API对接账户;Generate an API docking account based on user registration information; 根据用户账户配置的API接口基础参数生成相应的沙盒测试环境;Generate the corresponding sandbox test environment according to the basic parameters of the API interface configured by the user account; 根据所述注册信息向用户发送沙盒测试环境密钥;Send the sandbox test environment key to the user according to the registration information; 通过验证用户的沙盒测试环境密钥为用户账户配置所述相应沙盒测试环境。The corresponding sandbox test environment is configured for the user account by validating the user's sandbox test environment key. 3.根据权利要求1所述的方法,其特征在于,所述将在沙盒测试环境中上传交易凭证信息的成功次数作为用户账户通过沙盒测试的判断因素,包括:3. The method according to claim 1, wherein the successful number of times of uploading transaction credential information in the sandbox test environment is used as a judgment factor for the user account to pass the sandbox test, comprising: 设置沙盒测试期限;Set the sandbox testing period; 记录所述测试期限内用户账户上传交易凭证信息的成功次数;Record the number of successful times of uploading transaction credential information by the user account within the test period; 判断所述成功次数是否达到预设次数:Determine whether the number of successes reaches a preset number: 是,则判定所述用户账户通过沙盒测试;If yes, it is determined that the user account has passed the sandbox test; 否,则判定所述用户账户未通过沙盒测试,并返回错误提示。If not, it is determined that the user account has failed the sandbox test, and an error message is returned. 4.根据权利要求1所述的方法,其特征在于,所述验证生成请求信息通过审核的用户账户的生产密钥,完成与所述用户账户的API对接,包括:4. The method according to claim 1, wherein the verification generation request information passes through the production key of the audited user account, and completes the API docking with the user account, comprising: 判断所述生产请求信息是否通过审核:Determine whether the production request information has passed the audit: 是,则向用户发送生产配置密钥并通过验证用户的生产配置密钥完成与用户的API对接;If yes, send the production configuration key to the user and complete the API connection with the user by verifying the user's production configuration key; 否,则返回生产请求信息审核失败和失败原因。If not, it returns the production request information audit failure and the reason for the failure. 5.一种API对接系统,其特征在于,包括:5. an API docking system, is characterized in that, comprises: 初始配置单元,配置用于根据用户账户请求信息为所述用户账户配置沙盒测试环境;an initial configuration unit, configured to configure a sandbox testing environment for the user account according to the user account request information; 沙盒测试单元,配置将在沙盒测试环境中上传交易凭证信息的成功次数作为用户账户通过沙盒测试的判断因素;The sandbox testing unit is configured to use the number of successful uploading of transaction voucher information in the sandbox testing environment as a judging factor for the user account to pass the sandbox testing; 生产审核单元,配置用于对通过沙盒测试的用户账户的生产请求信息进行审核;The production audit unit is configured to audit the production request information of the user account that has passed the sandbox test; 对接完成单元,配置用于验证生成请求信息通过审核的用户账户的生产密钥,完成与所述用户账户的API对接。The docking completion unit is configured to verify the production key of the user account whose generation request information has passed the audit, and complete the API docking with the user account. 6.根据权利要求5所述的系统,其特征在于,所述初始配置单元包括:6. The system according to claim 5, wherein the initial configuration unit comprises: 账户生成模块,配置用于根据用户注册信息生成API对接账户;The account generation module is configured to generate an API docking account according to the user registration information; 沙盒生成模块,配置用于根据用户账户配置的API接口基础参数生成相应的沙盒测试环境;The sandbox generation module is configured to generate the corresponding sandbox test environment according to the basic parameters of the API interface configured by the user account; 沙盒密钥模块,配置用于根据所述注册信息向用户发送沙盒测试环境密钥;A sandbox key module, configured to send a sandbox test environment key to the user according to the registration information; 沙盒配置模块,配置用于通过验证用户的沙盒测试环境密钥为用户账户配置所述相应沙盒测试环境。The sandbox configuration module is configured to configure the corresponding sandbox test environment for the user account by verifying the user's sandbox test environment key. 7.根据权利要求5所述的系统,其特征在于,所述沙盒测试单元包括:7. The system according to claim 5, wherein the sandbox testing unit comprises: 期限设置模块,配置用于设置沙盒测试期限;The deadline setting module is configured to set the sandbox testing deadline; 次数记录模块,配置用于记录所述测试期限内用户账户上传交易凭证信息的成功次数;A times recording module, configured to record the successful times of uploading transaction credential information by the user account within the test period; 次数判断模块,配置用于判断所述成功次数是否达到预设次数;a number of times judgment module, configured to judge whether the number of successful times reaches a preset number of times; 测试通过模块,配置用于判定所述用户账户通过沙盒测试;A test pass module, configured to determine that the user account passes the sandbox test; 测试失败模块,配置用于判定所述用户账户未通过沙盒测试,并返回错误提示。The test failure module is configured to determine that the user account fails the sandbox test, and returns an error prompt. 8.根据权利要求5所述的系统,其特征在于,所述对接完成单元包括:8. The system according to claim 5, wherein the docking completion unit comprises: 生产判断模块,配置用于判断所述生产请求信息是否通过审核;A production judging module, configured to judge whether the production request information passes the audit; 验证对接模块,配置用于向用户发送生产配置密钥并通过验证用户的生产配置密钥完成与用户的API对接;The verification docking module is configured to send the production configuration key to the user and complete the API docking with the user by verifying the user's production configuration key; 失败返回模块,配置用于返回生产请求信息审核失败和失败原因。The failure return module is configured to return the production request information audit failure and the reason for the failure. 9.一种设备,其特征是,所述设备包括:9. A device, characterized in that the device comprises: 一个或多个处理器;one or more processors; 存储器,用于存储一个或多个程序,memory for storing one or more programs, 当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器执行如权利要求1-4中任一项所述的方法。The one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-4. 10.一种存储有计算机程序的计算机可读存储介质,其特征是,该程序被处理器执行时实现如权利要求1-4中任一项所述的方法。10. A computer-readable storage medium storing a computer program, characterized in that, when the program is executed by a processor, the method according to any one of claims 1-4 is implemented.
CN201910417460.7A 2019-05-20 2019-05-20 An API docking method, system, device and storage medium Pending CN111966426A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910417460.7A CN111966426A (en) 2019-05-20 2019-05-20 An API docking method, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910417460.7A CN111966426A (en) 2019-05-20 2019-05-20 An API docking method, system, device and storage medium

Publications (1)

Publication Number Publication Date
CN111966426A true CN111966426A (en) 2020-11-20

Family

ID=73357811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910417460.7A Pending CN111966426A (en) 2019-05-20 2019-05-20 An API docking method, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN111966426A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112541828A (en) * 2020-12-15 2021-03-23 国泰君安证券股份有限公司 System, method, device, processor and storage medium for realizing open securities management and open securities API access control
CN114090929A (en) * 2021-09-26 2022-02-25 深圳市高腾科技服务有限公司 Security dealer access management system
CN114417323A (en) * 2022-01-21 2022-04-29 北京飞书科技有限公司 Data reference method, device, equipment and medium
CN114584328A (en) * 2022-05-09 2022-06-03 武汉四通信息服务有限公司 API interface access method, computer device and computer storage medium
CN114595446A (en) * 2022-04-06 2022-06-07 中信百信银行股份有限公司 A dynamically configurable interface joint debugging sandbox implementation method
WO2024067847A1 (en) * 2022-09-30 2024-04-04 顺丰科技有限公司 Logistics system connection method and apparatus, electronic device, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1582426A (en) * 2001-12-31 2005-02-16 佩里L·约翰逊德克萨斯登记员合伙人有限公司 Method for performing registration audits
CN103377120A (en) * 2012-04-24 2013-10-30 深圳市财付通科技有限公司 Test method and device for application programs
CN103699479A (en) * 2012-09-27 2014-04-02 百度在线网络技术(北京)有限公司 Sandbox testing environment constitution system and sandbox testing environment constitution method
US20160048442A1 (en) * 2014-08-13 2016-02-18 American Express Travel Related Services Company Inc. Systems and methods for new product integration
CN108933713A (en) * 2018-07-20 2018-12-04 阿里巴巴集团控股有限公司 The method, apparatus and service server of sandbox debugging are realized based on shadow link
CN109669859A (en) * 2018-11-26 2019-04-23 平安科技(深圳)有限公司 Service test method, device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1582426A (en) * 2001-12-31 2005-02-16 佩里L·约翰逊德克萨斯登记员合伙人有限公司 Method for performing registration audits
CN103377120A (en) * 2012-04-24 2013-10-30 深圳市财付通科技有限公司 Test method and device for application programs
CN103699479A (en) * 2012-09-27 2014-04-02 百度在线网络技术(北京)有限公司 Sandbox testing environment constitution system and sandbox testing environment constitution method
US20160048442A1 (en) * 2014-08-13 2016-02-18 American Express Travel Related Services Company Inc. Systems and methods for new product integration
CN108933713A (en) * 2018-07-20 2018-12-04 阿里巴巴集团控股有限公司 The method, apparatus and service server of sandbox debugging are realized based on shadow link
CN109669859A (en) * 2018-11-26 2019-04-23 平安科技(深圳)有限公司 Service test method, device, computer equipment and storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112541828A (en) * 2020-12-15 2021-03-23 国泰君安证券股份有限公司 System, method, device, processor and storage medium for realizing open securities management and open securities API access control
CN112541828B (en) * 2020-12-15 2024-03-01 国泰君安证券股份有限公司 Systems, methods, devices, processors and storage media for realizing open securities management and open securities API access control
CN114090929A (en) * 2021-09-26 2022-02-25 深圳市高腾科技服务有限公司 Security dealer access management system
CN114417323A (en) * 2022-01-21 2022-04-29 北京飞书科技有限公司 Data reference method, device, equipment and medium
CN114417323B (en) * 2022-01-21 2023-02-28 北京飞书科技有限公司 Data reference method, device, equipment and medium
CN114595446A (en) * 2022-04-06 2022-06-07 中信百信银行股份有限公司 A dynamically configurable interface joint debugging sandbox implementation method
CN114584328A (en) * 2022-05-09 2022-06-03 武汉四通信息服务有限公司 API interface access method, computer device and computer storage medium
CN114584328B (en) * 2022-05-09 2022-08-02 武汉四通信息服务有限公司 API interface access method, computer device and computer storage medium
WO2024067847A1 (en) * 2022-09-30 2024-04-04 顺丰科技有限公司 Logistics system connection method and apparatus, electronic device, and storage medium

Similar Documents

Publication Publication Date Title
CN111966426A (en) An API docking method, system, device and storage medium
CN108346028B (en) Business approval processing method, device and system
CN113344523A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN112988600A (en) Service scene testing method and device, electronic equipment and storage medium
CN109034603B (en) Business process execution method, device and computer readable storage medium
CN113095830B (en) Batch payment processing method and device
CN113901476A (en) A kind of vulnerability verification method, system, device and medium based on virtualization environment
TW201939332A (en) Authentication method and apparatus
CN111881020A (en) Payment center interface testing method, device and system
US12483541B1 (en) Pre-built, pre-tested, and standardized connectors for end-to-end connection
CN113961468B (en) Digital certificate injection methods, apparatus, equipment, media, and program products used for U-shield testing
CN111930446A (en) An information processing method, device, terminal device and medium
WO2021081705A1 (en) Method and device for payment platform management, payment platform, and computer storage medium
US10289978B2 (en) Method and apparatus for integrating health care payers and provider systems with health care transaction systems using a single HIPAA EDI response generation component
CN116128494B (en) Service order payment method, system, electronic equipment and storage medium
CN114371866A (en) Version reconstruction testing method, device and equipment of business system
CN101211434A (en) Electronic order signing system and method
CN118797722A (en) Online course contract signing method and device
CN115098840B (en) An identity authentication method, device, equipment, medium and product
CN113239408B (en) Electronic signature system, method, device, equipment and storage medium
WO2020155167A1 (en) Application of cross-organizational transactions to blockchain
CN118590218A (en) A method, device, equipment and medium for implementing mobile terminal approval
CN113568838B (en) Test data generation method, device, equipment, storage medium and program product
CN117193598A (en) Online invoice butt joint method, equipment and medium
CN114417304A (en) A data verification method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201120