Methods and apparatus for using smart environment devices via application program interfaces
First Claim
Patent Images
1. A method, comprising:
- retrieving, via a hardware processor of an application programming interface client (API client) or an application programming interface client device (API client device) communicatively coupled to an application programming interface (API), a plurality of access tokens associated with the API client or the API client device from an authorization server;
sending, via the API client or the API client device, a first data model access request to the API communicatively coupled to the API client or the API client device via a single connection, wherein the first data model access request comprises the plurality of access tokens, and the plurality of access tokens are used to verify access rights of the API client or the API client device to access resource data for a plurality of users of the API client or the API client device from one or more data models, the resource data related to one or more smart devices; and
retrieving, via the API client or the API client device, the resource data for the plurality of users after the access rights are verified according to the plurality of access tokens, wherein the retrieved resource data comprises all data values in all structure objects that include at least references to devices in the structure and in all device objects that include at least temperature setpoints of a thermostat and alarm states of a smoke alarm, a carbon monoxide alarm, or both in the structure of the one or more data models that are associated with a respective access token of the plurality of access tokens.
2 Assignments
0 Petitions
Accused Products
Abstract
In one embodiments, a method for authorizing access for an application programming interface (API) client or API client device to data of one or more data models of one or more smart devices includes retrieving a number of access tokens from an authorization server, and providing, via a single connection, the number of access tokens in a request made by the API client or the API client device to the API, wherein the number of access tokens are used to verify access rights of the API client or the API client device to read data for a number of users associated with the one or more data models of the one or more smart devices.
28 Citations
28 Claims
-
1. A method, comprising:
-
retrieving, via a hardware processor of an application programming interface client (API client) or an application programming interface client device (API client device) communicatively coupled to an application programming interface (API), a plurality of access tokens associated with the API client or the API client device from an authorization server; sending, via the API client or the API client device, a first data model access request to the API communicatively coupled to the API client or the API client device via a single connection, wherein the first data model access request comprises the plurality of access tokens, and the plurality of access tokens are used to verify access rights of the API client or the API client device to access resource data for a plurality of users of the API client or the API client device from one or more data models, the resource data related to one or more smart devices; and retrieving, via the API client or the API client device, the resource data for the plurality of users after the access rights are verified according to the plurality of access tokens, wherein the retrieved resource data comprises all data values in all structure objects that include at least references to devices in the structure and in all device objects that include at least temperature setpoints of a thermostat and alarm states of a smoke alarm, a carbon monoxide alarm, or both in the structure of the one or more data models that are associated with a respective access token of the plurality of access tokens. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A method, comprising:
-
retrieving, via an application programming interface client (API client) or an application programming interface client device (API client device) communicatively coupled to an application programming interface (API), a plurality of access tokens associated with the API client or the API client device from an authorization server by providing one or more authorization codes to the authorization server, wherein the one or more authorization codes are received by the API client or the API client device when a user of one or more smart devices grants access rights for the API client or the API client device via a resource access permission page that prompts the user to grant the access rights to resource data of one or more data models to the API client or the API client device to enable data model access requests from the API client or the API client device to be processed by a device service in accordance with the access rights; sending a first data model access request to the API communicatively coupled to the API client or the API client device via a single connection, wherein the first data model access request comprises the plurality of access tokens and the plurality of access tokens are used to verify the access rights of the API client or the API client device to access the resource data for a plurality of users of the API client or the API client device from the one or more data models, the resource data related to the one or more smart devices; and retrieving the resource data for the plurality of users after the access rights are verified according to the plurality of access tokens. - View Dependent Claims (11, 12)
-
-
13. A system, comprising:
-
a computer hardware processor of an application programming interface client (API client) or an application programming interface client device (API client device) communicatively coupled to an application programming interface (API), wherein the computer hardware processor is configured to; retrieve a plurality of access tokens associated with the API client or the API client device from an authorization server by providing one or more authorization codes to the authorization server, wherein the one or more authorization codes are received by the API client or the API client device when a user of one or more smart devices grants access rights for the API client or the API client device via a resource access permission page that prompts the user to grant the access rights to resource data of one or more data models to the API client or the API client device to enable data model access requests from the API client or the API client device to be processed by a device service in accordance with the access rights; send a first data model access request to the API communicatively coupled to the API client or the API client device via a single connection, wherein the first data model access request comprises the plurality of access tokens and the plurality of access tokens are used to verify the access rights of the API client or the API client device to access the resource data for a plurality of users of the API client or the API client device from the one or more data models, the resource data related to the one or more smart devices; and retrieve the resource data for the plurality of users after the access rights are verified according to the plurality of access tokens. - View Dependent Claims (14, 15)
-
-
16. A system, comprising:
a computer hardware processor of an application programming interface client (API client) or an application programming interface client device (API client device) communicatively coupled to an application programming interface (API) communicatively coupled to the API client or the API client device, wherein the computer hardware processor is configured to; retrieve, via the API client or the API client device, a plurality of access tokens associated with the API client or the API client device from an authorization server; send a first data model access request to the API communicatively coupled to the API client or the API client device via a single connection, wherein the first data model access request comprises the plurality of access tokens, and the plurality of access tokens are used to verify access rights of the API client or the API client device to access resource data for a plurality of users of the API client or the API client device from one or more data models, the resource data related to one or more smart devices; and retrieve the resource data for the plurality of users after the access rights are verified according to the plurality of access tokens, wherein the retrieved resource data comprises all data values in all structure objects that include at least references to devices in the structure and in all device objects that include at least temperature setpoints of a thermostat and alarm states of a smoke alarm, a carbon monoxide alarm, or both in the structure of the one or more data models that are associated with a respective access token of the plurality of access tokens. - View Dependent Claims (17, 18)
-
19. A system, comprising:
a computer hardware processor of an application programming interface client (API client) or an application programming interface client device (API client device) communicatively coupled to an application programming interface (API), wherein the computer hardware processor is configured to; retrieve a plurality of access tokens associated with the API client or the API client device from an authorization server by providing one or more authorization codes to the authorization server, wherein the authorization server validates the one or more authorization codes and associates each of the plurality of access tokens with the API client or the API client device; send a first data model access request to the API via a single connection, wherein the first data model access request comprises the plurality of access, and the plurality of access tokens are used to verify access rights of the API client or the API client device to access resource data for a plurality of users of the API client or API client device from the one or more data models, the resource data related to the one or more smart devices; and retrieve the resource data for the plurality of users after the access rights are verified according to the plurality of access tokens. - View Dependent Claims (20, 21)
-
22. One or more tangible, non-transitory computer-readable media storing computer instructions that, when executed by a hardware processor of an application programming interface client (API client) or an application programming interface client device (API client device) communicatively coupled to an application programming interface (API), that when executed are configured to:
-
retrieve a plurality of access tokens associated with the API client device from an authorization server by providing one or more authorization codes to the authorization server, wherein the authorization server validates the one or more authorization codes and associates each of the plurality of access tokens with the API client or the API client device; send a first data model access request to the API communicatively coupled to the API client or the API client device via a single connection, wherein the first data model access request comprises the plurality of access, and the plurality of access tokens are used to verify access rights of the API client or the API client device to access resource data for a plurality of users of the API client or the API client device from the one or more data models, the resource data related to one or more smart devices; and retrieve the resource data for the plurality of users after the access rights are verified according to the plurality of access tokens. - View Dependent Claims (23, 24, 25, 26, 27, 28)
-
Specification