Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Application program interface calling method and device

A technology of application programming interface and application program, which is applied in the information field, can solve problems such as complicated operation, poor client compatibility, time wasting, etc., and achieve the effect of simplifying operation and saving time

Active Publication Date: 2015-10-14
TENCENT TECH (BEIJING) CO LTD
View PDF6 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the problems in the background technology that when the encoding rules of URLs in the specified format are changed, it is necessary to modify the URL in each webpage that has been written, the operation is complicated and time-consuming, and the compatibility with different versions of clients is also poor. The embodiment of the invention provides an application programming interface calling method and device

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Application program interface calling method and device
  • Application program interface calling method and device
  • Application program interface calling method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0033] The terminal in this embodiment can be a smart phone, a tablet computer, an electronic book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, moving picture expert compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV , Dynamic image experts compress the standard audio level 4) Players, laptops and desktop computers, etc. The client is a client running on the terminal, and the terminal can obtain web page information through the client.

[0034] Please refer to figure 1 , which shows a method flowchart of an application programming interface calling method provided by an embodiment of the present invention. This embodiment is described by taking the application program interfa...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A method and an apparatus for invoking an application programming interface (APl) are disclosed. The method includes: loading a prestored JS file to a webpage after loading of the webpage is completed; receiving an invoking request that is sent by the webpage by invoking the JS file; and invoking a corresponding AP1 according to a JS URL. This solves a problem that an encoded URL in each webpage needs to be modified when an encoding rule of a URL in a specified format is changed, which is complicated in operation, wastes time, and is poor in compatibility with clients in different versions.

Description

technical field [0001] The embodiment of the present invention relates to the field of information technology, and in particular to an application program interface calling method and device. Background technique [0002] The webpage can call the client running in the mobile terminal to perform operations such as uploading videos, uploading pictures, and verifying information. That is, the client can provide some APIs (Application Programming Interface, Application Programming Interface) to the webpage in advance, and then the webpage implements functions such as opening the camera, locating and obtaining address book information provided by the client by calling different APIs. [0003] In related technologies, each API provided by the client to the web page has its own corresponding URL (Uniform Resource Locator, Uniform Resource Locator) in a specified format. Different APIs correspond to different URLs in a specified format. The specified format is determined by the clie...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
CPCG06F8/36G06F9/44521G06F16/9566H04L67/01G06F9/547
Inventor 禹潇潇
Owner TENCENT TECH (BEIJING) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products