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, wherein the default invoking permission for the API category may be altered by a user-selected current invoking permission.
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, wherein the default invoking permission for the API category may be altered by a user-selected current invoking permission. 17. The non-transitory computer readable storage medium of claim 13 , wherein setting the default invoking permission for the respective API category further comprises: displaying a listing of one or more API categories that includes the respective API category; detecting a user input corresponding to selection of the respective API category; displaying a listing of one or more applications configured to invoke at least one API in the API category; displaying a plurality of selectable affordances, each selectable affordance in the plurality of selectable affordances corresponding to an invoking permission; detecting selection of a respective selectable affordance; and setting the default invoking permission to the invoking permission corresponding to the respective selectable affordance.