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, wherein the default invoking permission for the API category may be altered by a user-selected current invoking permission.
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, wherein the default invoking permission for the API category may be altered by a user-selected current invoking permission. 12. The electronic device of claim 7 , the instruction further causing the device to, prior to displaying the listing of the one or more API categories that includes the respective API category: display a listing of a plurality of applications including a respective application capable of invoking at least one API in the respective API category; and detect selection of the respective application; wherein the listing of the one or more API categories is displayed upon detecting selection of the respective application, and each of the one or more API categories includes at least one API capable of being invoked by the respective application.