CN111966426A - API (application program interface) docking method, system, equipment and storage medium - Google Patents

API (application program interface) docking method, system, equipment 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
test
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
SF Tech 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; CALCULATING OR 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; CALCULATING OR 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

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 the user account request information; taking the successful times of uploading the transaction voucher information in the sandbox testing environment as a judgment factor of the user account passing the sandbox test; auditing the production request information of the user account passing the sandbox test; and verifying the production key of the user account of which the generated request information passes the verification, and completing API docking with the user account. The invention can automatically complete API docking with the user, greatly improves the automation degree of the API docking process, does not need to manually carry out a complicated approval process, greatly improves the API docking efficiency, enhances the user experience and saves a large amount of time.

Description

API (application program interface) docking method, system, equipment and storage medium
Technical Field
The present invention relates to the field of API technologies, and in particular, to an API docking method, system, device, and storage medium.
Background
An API (Application Programming Interface) is a predefined function that is intended to provide applications and developers the ability to access a set of routines based on certain software or hardware, without having to access source code or understand the details of the internal workings. Internet-based applications are becoming more and more popular, in the process of which there are more sites that open their own resources to developers for invocation. API calls provided externally enable content relevance among sites to be stronger, and meanwhile, the open platforms bring greater values to users, developers and small and medium websites. More and more API docking technology is now being used by e-commerce to provide more online services to customers.
At present, a client in the publicly known logistics and express industry docks an API (application program protocol) flow, namely, the client docks a seller of a company providing the API, then applies for the ECP flow, after the ECP flow is filed, the seller provides an API interface specification document for the client, then a tester and a client research and development personnel carry out docking, and after joint debugging is finished, a production environment is applied, so that the flow is complicated, and quick access is inconvenient. In the customer docking process, too much manual matching docking is needed, and a bottleneck is easily caused. On one hand, high communication cost is caused, and on the other hand, the docking progress is influenced, so that the development of company business is directly influenced.
Disclosure of Invention
In order to solve the above technical problems, an object of the present invention is to provide an API docking method, system, device and storage medium.
According to an aspect of the present invention, there is provided an API docking method, including:
configuring a sandbox test environment for the user account according to the user account request information;
taking the successful times of uploading the transaction voucher information in the sandbox testing environment as a judgment factor of the user account passing the sandbox test;
auditing the production request information of the user account passing the sandbox test;
and verifying the production key of the user account of which the generated request information passes the verification, and completing API docking with the user account.
Further, configuring a sandbox test environment for the user account according to the user account request information, including:
generating an API docking account according to the user registration information;
generating a corresponding sandbox test environment according to API (application program interface) basic parameters configured by a user account;
sending a sandbox test environment key to a user according to the registration information;
and configuring the corresponding sandbox test environment for the user account by verifying the sandbox test environment key of the user.
Further, the number of times of success of uploading the transaction credential information in the sandbox test environment is used as a judgment factor for the user account to pass the sandbox test, and the method comprises the following steps:
setting a sandbox test period;
recording the successful times of uploading transaction certificate information by the user account within the test period;
judging whether the success times reach preset times or not:
if yes, judging that the user account passes the sandbox test;
and if not, judging that the user account does not pass the sandbox test, and returning an error prompt.
Further, verifying the production key of the user account whose generation request information passes the audit, and completing API docking with the user account includes:
judging whether the production request information passes the audit:
if yes, sending the production configuration key to the user and completing API docking with the user by verifying the production configuration key of the user;
and if not, returning the production request information to verify failure and failure reasons.
According to another aspect of the present invention, there is provided an API docking system including:
the system comprises an initial configuration unit, a sandbox testing unit and a sandbox testing unit, wherein the initial configuration unit is configured to configure a sandbox testing environment for a user account according to user account request information;
the sandbox testing unit is used for configuring the number of times of success of uploading the transaction voucher information in the sandbox testing environment as a judgment factor of the user account passing the sandbox test;
the production auditing unit is configured for auditing the production request information of the user account which passes the sandbox test;
and the docking completion unit is configured to verify the production key of the user account of which the generated request information passes the verification, and complete API docking with the user account.
Further, the initial configuration unit includes:
the account generation module is configured for generating an API docking account according to the user registration information;
the sandbox generation module is configured for generating a corresponding sandbox test environment according to the API (application program interface) basic parameters configured by the user account;
the sandbox key module is configured to send a sandbox test environment key to the user according to the registration information;
and the sandbox configuration module is configured for configuring the corresponding sandbox test environment for the user account by verifying the sandbox test environment key of the user.
Further, the sandbox test unit includes:
the time limit setting module is configured for setting the test time limit of the sandbox;
the number recording module is configured to record the success number of the transaction voucher information uploaded by the user account within the test period;
the frequency judging module is configured to judge whether the success frequency reaches a preset frequency;
a test pass module configured to determine that the user account passes a sandbox test;
and the test failure module is configured for judging that the user account does not pass the sandbox test and returning an error prompt.
Further, the docking completion unit includes:
the production judging module is configured for judging whether the production request information passes the audit;
the verification docking module is configured to send the production configuration key to the user and complete API docking with the user through the production configuration key of the verification user;
and the failure return module is configured for returning the production request information auditing failure and the failure reason.
In addition, the present invention also provides an apparatus comprising:
one or more processors;
a 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 the method of any of the above.
According to another aspect of the invention, there is provided a computer readable storage medium storing a computer program which, when executed by a processor, implements a method as defined in any one of the above.
Compared with the prior art, the invention has the following beneficial effects:
1. according to the API docking method disclosed by the invention, the sandbox test environment is configured for the user account according to the user account request information, wherein the user account request information comprises the selection setting of the basic parameters of the API interface which is requested to be docked by the user according to the self service requirement, and the sandbox test environment is configured for the user according to the user account request information, so that the user can select the API interface according to the self service requirement, and the user experience is improved. After a user enters a sandbox testing link, the number of times of success of uploading transaction voucher information in the sandbox testing environment is used as a judgment factor of the user account passing the sandbox testing, and since the transaction voucher information uploading by the user is carried out in the sandbox environment, the operation of uploading the information by the user and modifying the information cannot affect the system of the API provider, and the safety of the system of the API provider is ensured. And verifying the production request information of the user account passing the sandbox test, verifying the production key of the user account of which the generated request information passes the verification, and completing API (application program interface) docking with the user account. After the sandbox test is passed, a user enters a production auditing link which is not performed in the sandbox environment, wherein production request information is automatically audited without manual auditing, and after the production request auditing is passed, API docking is completed, so that the sandbox test method can be normally used. The invention can automatically complete API docking with the user, greatly improves the automation degree of the API docking process, does not need to manually carry out a complicated approval process, greatly improves the API docking efficiency, enhances the user experience and saves a large amount of time.
2. According to the API docking system disclosed by the invention, the sandbox test environment is configured for the user account through the initial configuration unit according to the user account request information, wherein the user account request information comprises the selection setting of the basic parameters of the API interface which is requested to be docked by the user according to the self service requirement, and the sandbox test environment is configured for the user according to the user account request information, so that the user can select the API interface according to the self service requirement, and the user experience is improved. After a user enters a sandbox testing link, the number of times of success of uploading transaction voucher information in the sandbox testing environment is used as a judgment factor of the user account passing the sandbox testing through the sandbox testing unit, and since the transaction voucher information uploading by the user is carried out in the sandbox environment, the operation of uploading information by the user and modifying information cannot affect the system of the API provider, and the safety of the system of the API provider is guaranteed. And verifying the production request information of the user account passing the sandbox test, verifying the production key of the user account of which the generated request information passes the verification, and completing API (application program interface) docking with the user account. After the sandbox test is passed, a user enters a production auditing link which is not performed in the sandbox environment, wherein production request information is automatically audited without manual auditing, and after the production request auditing is passed, API docking is completed, so that the sandbox test method can be normally used. The invention can automatically complete API docking with the user, greatly improves the automation degree of the API docking process, does not need to manually carry out a complicated approval process, greatly improves the API docking efficiency, enhances the user experience and saves a large amount of time.
3. The equipment disclosed by the invention can complete API docking more quickly and improve the service quality by executing the API docking method through the processor.
4. The readable storage medium of the present invention stores the API docking method implemented when executed by the processor, which facilitates API docking with a user.
Drawings
FIG. 1 is a flow chart of the present invention.
Fig. 2 is a schematic diagram of the structure of the apparatus of the present invention.
Detailed Description
In order to better understand the technical scheme of the invention, the invention is further explained by combining the specific embodiment and the attached drawings of the specification.
Example 1:
the present embodiment provides an API docking system, including:
the system comprises an initial configuration unit, a sandbox testing unit and a sandbox testing unit, wherein the initial configuration unit is configured to configure a sandbox testing environment for a user account according to user account request information;
the sandbox testing unit is used for configuring the number of times of success of uploading the transaction voucher information in the sandbox testing environment as a judgment factor of the user account passing the sandbox test;
the production auditing unit is configured for auditing the production request information of the user account which passes the sandbox test;
and the docking completion unit is configured to verify the production key of the user account of which the generated request information passes the verification, and complete API docking with the user account.
In this embodiment, through the automatic API docking process, the user selects the order placing interface and the order screening interface according to the service requirement, and configures the basic information of the order placing interface and the basic information of the order screening interface as required, for example, if the following order interface of the interface configuration option is used, the monthly payment card number that needs to be bound is correct and legal, and whether a routing tag needs to be used is determined. If there is no interface configuration option such as order screening interface, the default configuration is only needed. And after the configuration is finished, API docking can be finished through sandbox testing and production environment auditing.
Wherein, the initial configuration unit includes:
the account generation module is configured for generating an API docking account according to the user registration information;
the sandbox generation module is configured for generating a corresponding sandbox test environment according to the API (application program interface) basic parameters configured by the user account;
the sandbox key module is configured to send a sandbox test environment key to the user according to the registration information;
and the sandbox configuration module is configured for configuring the corresponding sandbox test environment for the user account by verifying the sandbox test environment key of the user.
The sandbox test unit includes:
the time limit setting module is configured for setting the test time limit of the sandbox;
the number recording module is configured to record the success number of the transaction voucher information uploaded by the user account within the test period;
the frequency judging module is configured to judge whether the success frequency reaches a preset frequency;
a test pass module configured to determine that the user account passes a sandbox test;
and the test failure module is configured for judging that the user account does not pass the sandbox test and returning an error prompt.
The docking completion unit includes:
the production judging module is configured for judging whether the production request information passes the audit;
the verification docking module is configured to send the production configuration key to the user and complete API docking with the user through the production configuration key of the verification user;
and the failure return module is configured for returning the production request information auditing failure and the failure reason.
In the API docking system of this embodiment, an initial configuration unit configures a sandbox test environment for a user account according to user account request information, and then a sandbox test unit takes the number of times of success of uploading transaction credential information in the sandbox test environment as a determination factor that the user account passes through a sandbox test. The production auditing unit audits the production configuration request sent by the user who passes the sandbox test, the butt joint completion unit completes API butt joint by sending a secret key to the user who passes the audit of the production configuration request and verifying the secret key, and the API interface can be used in a production environment. The invention can automatically complete API docking with users, reduce the work of home-on docking clients of regional sales associates and reduce the labor cost of enterprises; the process approval procedures are reduced, the zero ECP approval process is realized, and the working efficiency of enterprises is improved; the learning cost of the client is reduced, and the client can quickly finish API docking operation.
Taking the docking of the platform of the fairway bridge as an example, the API docking method corresponding to the API docking system provided by the present invention is described, which includes:
and S1, configuring a sandbox test environment for the user account according to the user account request information.
And generating a user account according to registration information input by the user, wherein the registration information comprises a company name, a contact way of a person in charge of docking and the like. After logging in an account, a user selects a required API interface according to business requirements and configures corresponding basic parameters, the user selects an order placing interface and an order screening interface according to the business requirements, and configures basic information of the order placing interface and basic information of the order screening interface according to requirements, for example, if the following order interface of an interface configuration option is available, the monthly settlement card number required to be bound is correct and legal, whether a routing label is required to be used is determined, and the like. If there is no interface configuration option such as order screening interface, the default configuration is only needed. In other embodiments of the present invention, if only one API interface is provided to the client by the platform of the API interface provider, the client does not need to perform API interface selection and basic parameter configuration.
After configuring the API interface to be docked according to the service requirement, the user sends request information to an upper-layer system (a system which actually uses the API interface for the client, such as a Fengqiao platform), the upper-layer system generates a sandbox testing environment according to the request information, and if the user request information selects an order placing interface, the sandbox testing environment of the order placing interface is generated. The upper-layer system issues a sandbox test environment use key to the user according to the registration information (the contact way of the person in charge of docking) of the user account, the user can enter the sandbox test environment by inputting the sandbox test environment use key, and the use time limit of the user on the sandbox test environment is 7 x 24 h. In the field of computer security, the present application sandbox environment (also known as sandbox environment, english sandbox): the sandbox test refers to a test performed in an internal environment or under a network before a product is not on-line, and is a safety mechanism and an isolation environment provided for running programs. Often, the process is used as a source of uncertainty, damage, or failure to determine the intent of the process. Therefore, the information uploaded to the sandbox test environment by the user and the modification operation of the information in the sandbox test environment cannot affect the upper system, and the safety of the upper system is ensured.
And S2, taking the successful times of uploading the transaction voucher information in the sandbox test environment as a judgment factor of the user account passing the sandbox test.
In this embodiment, the preset times are set to 3 times, and the transaction voucher information is an electronic bill of the user. The method comprises the following steps of checking an electronic bill uploaded by a user, checking whether a template of the electronic bill meets requirements or not by a back end, whether the electronic bill contains order information or not, whether a bar code meets a coding specification or not, whether a terminal can be identified by scanning the bar code or not and the like, wherein the following points exist in the current situation that the fixed checking cannot pass: 1. the bill form format does not conform to the specification 2, and belongs to a self-designed electronic bill 3, a non-latest template electronic bill 4, a non-electronic bill picture 5 and test data which is not required to be contained in the bill. And if the electronic bill uploaded by the user does not pass the audit, returning a prompt of the uploading failure of the electronic bill and a failure reason so as to facilitate the improvement of the user. And if the electronic bill passes the audit, uploading the electronic bill to an upper layer system and recording. The user can modify the electronic bill before the electronic bill passes the audit, and the electronic bill can not be modified after the electronic bill passes the audit. And judging whether the success frequency of uploading the electronic bill by the user reaches 3 times within the valid period (7 multiplied by 24h) of the sandbox test environment, if so, judging that the user passes the sandbox test, and entering the production auditing link of the step S3. And if the success frequency of uploading the electronic bill by the user does not reach 3 times, judging that the sandbox test of the user fails, and returning a failure prompt.
And S3, verifying the production request information of the user account passing the sandbox test.
The user account tested by the sandbox can be dynamically transited from the sandbox environment to the production environment according to the process state of the API applied by the client. The user uploads production request information, wherein the production request information mainly comprises a company name, an address, license information and a monthly card number in the company information. Whether the client is a monthly client of the company or not is checked by referring to whether the client is a monthly client of the company or not and corresponding client information exists on a monthly client platform (the system has data synchronization with the monthly client platform, and the monthly client information of the latest company can be inquired in real time). And if the production request information uploaded by the user can find the matched client company information and monthly card number, judging that the production request information passes verification. If the production request information uploaded by the user cannot be inquired, a prompt that the production information cannot pass the verification is returned to the user, and the reason of failure is displayed so that the user can modify the production request information.
And S4, verifying the production key of the user account of which the generated request information passes the verification, and completing the API docking with the user account.
After the user production request information passes verification, a production configuration key (which can be sent to a reserved mailbox of a docking responsible person and the like) is issued to the user, the user inputs the received production configuration key into the system, and after the system verifies the production configuration key input by the user, the user account enters a production environment to complete API docking and can be normally used.
And storing the user information to an API docking completion database. And if the user account is frozen, the frozen user calls the API configuration interface, the transmitted TYPE is DELETE, the API state is initialized, and all data in the API docking completion database of the user are deleted, so that all functions of the API can be forbidden. When the user needs to unfreeze and re-interface the API, the basic parameter configuration of the API interface needs to be carried out again, a request is sent, and sandbox testing and environment generation auditing are carried out. And after the link is finished, the interface state of the user is recovered to the normal use state.
If the user who is docked with the API interface needs to dock other types of API interfaces, the user needs to reconfigure the basic parameter sending request of the API interface needing to be docked to carry out sandbox testing.
If the user needs to change the self authority from the monthly client to the multi-monthly client, the user only needs to go through the production environment auditing link again, and the user does not need to go through a sandbox test.
An apparatus of this embodiment, the apparatus comprising: one or more processors;
a memory for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are enabled to execute any one of the methods, and the API docking can be completed more quickly and the service quality is improved by executing the API docking method through the processors.
A computer-readable storage medium storing a computer program according to the present embodiment is characterized in that the program implements any of the methods described above when executed by a processor, and stores the API docking method implemented when executed by the processor, so as to facilitate API docking with a user. Further introduction is as follows:
the computer system includes a Central Processing Unit (CPU)101, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)102 or a program loaded from a storage section into a Random Access Memory (RAM) 103. In the RAM103, various programs and data necessary for system operation are also stored. The CPU 101, ROM 102, and RAM103 are connected to each other via a bus 104. An input/output (I/O) interface 105 is also connected to bus 104.
The following components are connected to the I/O interface 105: an input portion 106 including a keyboard, a mouse, and the like; an output section including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 108 including a hard disk and the like; and a communication section 109 including a network interface card such as a LAN card, a modem, or the like. The communication section 109 performs communication processing via a network such as the internet. The 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, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 108 as necessary.
In particular, according to an embodiment of the invention, the process described above with reference to the flowchart of fig. 1 may be implemented as a computer software program. For example, embodiment 1 of the invention comprises a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section, and/or installed from a removable medium. The above-described functions defined in the system of the present application are executed when the computer program is executed by the Central Processing Unit (CPU) 101.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Block diagram 2 of the 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, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block 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 will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves. The described units or modules may also be provided in a processor, and may be described as: an API docking system comprising: the system comprises a sandbox test unit, a flow triggering unit, a request verification unit and a docking completion unit, wherein the names of the units do not form a limitation on the units in a certain condition, for example, the sandbox test unit can also be described as a sandbox test unit which is used for calling an API (application programming interface) according to the transaction certificate information of a docking requester and recording the successful times of calling the API in the sandbox environment.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to implement the API docking method as described in the above embodiments.
For example, the electronic device may implement the following as shown in fig. 1: step S1: calling an API (application programming interface) in a sandbox environment according to the transaction certificate information of the butt joint requester and recording the successful times of calling the API; step S2: triggering and applying a production process according to the success times; step S3: verifying the request information of the docking request sender entering the application production flow and sending an API production configuration key to the docking request sender after the verification is passed; step S4: and the API docking with the docking request sender is completed by verifying the API production configuration key of the docking request sender.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by a person skilled in the art that the scope of the invention as referred to in the present application is not limited to the embodiments with a specific combination of the above-mentioned features, but also covers other embodiments with any combination of the above-mentioned features or their equivalents without departing from the inventive concept. For example, the features described above have similar functions to (but are not limited to) those disclosed in this application.

Claims (10)

1. An API docking method, comprising:
configuring a sandbox test environment for the user account according to the user account request information;
taking the successful times of uploading the transaction voucher information in the sandbox testing environment as a judgment factor of the user account passing the sandbox test;
auditing the production request information of the user account passing the sandbox test;
and verifying the production key of the user account of which the generated request information passes the verification, and completing API docking with the user account.
2. The method of claim 1, wherein configuring a sandbox test environment for the user account based on the user account request information comprises:
generating an API docking account according to the user registration information;
generating a corresponding sandbox test environment according to API (application program interface) basic parameters configured by a user account;
sending a sandbox test environment key to a user according to the registration information;
and configuring the corresponding sandbox test environment for the user account by verifying the sandbox test environment key of the user.
3. The method of claim 1, wherein the determining the number of times the transaction credential information was successfully uploaded in the sandboxed testing environment as a factor for the user account to pass the sandboxed test comprises:
setting a sandbox test period;
recording the successful times of uploading transaction certificate information by the user account within the test period;
judging whether the success times reach preset times or not:
if yes, judging that the user account passes the sandbox test;
and if not, judging that the user account does not pass the sandbox test, and returning an error prompt.
4. The method of claim 1, wherein verifying the production key of the user account whose generation request information passes the audit completes the API interface with the user account, comprising:
judging whether the production request information passes the audit:
if yes, sending the production configuration key to the user and completing API docking with the user by verifying the production configuration key of the user;
and if not, returning the production request information to verify failure and failure reasons.
5. An API docking system, comprising:
the system comprises an initial configuration unit, a sandbox testing unit and a sandbox testing unit, wherein the initial configuration unit is configured to configure a sandbox testing environment for a user account according to user account request information;
the sandbox testing unit is used for configuring the number of times of success of uploading the transaction voucher information in the sandbox testing environment as a judgment factor of the user account passing the sandbox test;
the production auditing unit is configured for auditing the production request information of the user account which passes the sandbox test;
and the docking completion unit is configured to verify the production key of the user account of which the generated request information passes the verification, and complete API docking with the user account.
6. The system of claim 5, wherein the initial configuration unit comprises:
the account generation module is configured for generating an API docking account according to the user registration information;
the sandbox generation module is configured for generating a corresponding sandbox test environment according to the API (application program interface) basic parameters configured by the user account;
the sandbox key module is configured to send a sandbox test environment key to the user according to the registration information;
and the sandbox configuration module is configured for configuring the corresponding sandbox test environment for the user account by verifying the sandbox test environment key of the user.
7. The system of claim 5, wherein the sandbox test unit comprises:
the time limit setting module is configured for setting the test time limit of the sandbox;
the number recording module is configured to record the success number of the transaction voucher information uploaded by the user account within the test period;
the frequency judging module is configured to judge whether the success frequency reaches a preset frequency;
a test pass module configured to determine that the user account passes a sandbox test;
and the test failure module is configured for judging that the user account does not pass the sandbox test and returning an error prompt.
8. The system of claim 5, wherein the docking completion unit comprises:
the production judging module is configured for judging whether the production request information passes the audit;
the verification docking module is configured to send the production configuration key to the user and complete API docking with the user through the production configuration key of the verification user;
and the failure return module is configured for returning the production request information auditing failure and the failure reason.
9. An apparatus, characterized in that the apparatus comprises:
one or more processors;
a 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 the method recited in any of claims 1-4.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-4.
CN201910417460.7A 2019-05-20 2019-05-20 API (application program interface) docking method, system, equipment 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 API (application program interface) docking method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910417460.7A CN111966426A (en) 2019-05-20 2019-05-20 API (application program interface) docking method, system, equipment 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 API (application program interface) docking method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111966426A (en)

Cited By (4)

* 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
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
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 (7)

* 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 国泰君安证券股份有限公司 System, method, device, processor and storage medium for realizing open securities management and open securities API access control
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
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) API (application program interface) docking method, system, equipment and storage medium
US9524230B2 (en) Testing coordinator
US10074120B2 (en) Dynamic template selector and data integrity engine for inspection reports
US8707276B2 (en) Method and system for managing programmed applications in an open API environment
US6167568A (en) Method and apparatus for implementing electronic software distribution
US9754265B2 (en) Systems and methods to automatically activate distribution channels provided by business partners
US8677308B2 (en) Method and system for generating an API request message
US20160260157A1 (en) Rapid service orchestration and management
CN102411503A (en) Dry-run design time environment
CN114170015A (en) Information processing method, system, device and medium
CN116662193A (en) Page testing method and device
CN108259487B (en) information interaction method and computer readable medium
CN112015715A (en) Industrial Internet data management service testing method and system
CN114115628A (en) U shield display information acquisition method, device, equipment, medium and program product applied to U shield test
CN114489667A (en) Script generation method and device, electronic equipment and storage medium
CN113902429A (en) Electronic bill transaction validity verification method, device and related equipment
KR20150032606A (en) System and method for testing of credit authorization terminal
CN113392002A (en) Test system construction method, device, equipment and storage medium
CN113656301A (en) Interface testing method, device, equipment and storage medium
CN112598420B (en) Online regression verification method and device
CN113568838A (en) Test data generation method, device, equipment, storage medium and program product
CN113989029A (en) Data processing method, data processing apparatus, electronic device, medium, and computer program product
CN114490409A (en) Product testing method and device, storage medium and electronic equipment
CN118211799A (en) Service management method, device and first terminal
CN115237793A (en) Application development system and method and application development response method

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