METHOD AND DEVICE FOR CONTROLLING INVOCATION OF AN APPLICATION PROGRAMMING INTERFACE
First Claim
1. A computer-implemented method of controlling invocation of an application programming interface (API), the method comprising:
- at a computer having a processor and memory for storing one or more programs;
categorizing a plurality of APIs according to a plurality of API categories, wherein the API categories are categorized by an API function through which user information is obtained;
setting a default invoking permission for a respective API category;
detecting, in real time, an attempt by an application to invoke an API in the respective API category; and
upon detecting the attempted invocation of the API in the API category by the application, controlling the invoking behavior of the API by the application in accordance with the default invoking permission for the API category.
1 Assignment
0 Petitions
Accused Products
Abstract
A computer-implemented method for controlling invocation of application programming interface (API) is provided. The method includes categorizing a plurality of APIs according to a plurality of API categories. The API categories are categorized by an API function through which user information is obtained. The method further includes setting a default invoking permission for a respective API category, and detecting, in real time, an attempt by an application to invoke an API in the respective API category. Upon detecting the attempted invocation of the API in the API category by the application, the method further includes controlling the invoking behavior of the API by the application in accordance with the default invoking permission for the API category.
16 Citations
18 Claims
-
1. A computer-implemented method of controlling invocation of an application programming interface (API), the method comprising:
at a computer having a processor and memory for storing one or more programs; categorizing a plurality of APIs according to a plurality of API categories, wherein the API categories are categorized by an API function through which user information is obtained; setting a default invoking permission for a respective API category; detecting, in real time, an attempt by an application to invoke an API in the respective API category; and upon detecting the attempted invocation of the API in the API category by the application, controlling the invoking behavior of the API by the application in accordance with the default invoking permission for the API category. - View Dependent Claims (2, 3, 4, 5, 6)
-
7. An electronic device, comprising:
-
one or more processors; memory; and one or more programs, wherein the one or more programs are stored in memory and configured to be executed by the one or more processors, the one or more programs including an operating system and instructions that when executed by the one or more processors cause the electronic device to; categorize a plurality of APIs according to a plurality of API categories, wherein the API categories are categorized by an API function through which user information is obtained; set a default invoking permission for a respective API category; detect, in real time, an attempt by an application to invoke an API in the respective API category; and upon detecting the attempted invocation of the API in the API category by the application, control the invoking behavior of the API by the application in accordance with the default invoking permission for the API category. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A non-transitory computer readable storage medium storing one or more programs, the one or more programs comprising an operating system and instructions, which when executed by an electronic device with one or more processors and memory, cause the electronic device to:
-
categorize a plurality of APIs according to a plurality of API categories, wherein the API categories are categorized by an API function through which user information is obtained; set a default invoking permission for a respective API category; detect, in real time, an attempt by an application to invoke an API in the respective API category; and upon detecting the attempted invocation of the API in the API category by the application, control the invoking behavior of the API by the application in accordance with the default invoking permission for the API category. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification