You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1030,6 +1033,7 @@ When you send an email with the "Microsoft" mail type, you must pass an object t
1030
1033
| toRecipients |[recipient](#recipient-object) collection | The To: recipients for the message. |
1031
1034
1032
1035
#### Attachment object
1036
+
1033
1037
| Property | Type | Description |
1034
1038
|---|---|---|
1035
1039
|@odata.type|Text|always "#microsoft.graph.fileAttachment" (note that the property name requires that you use the `[""]` syntax)|
@@ -1050,19 +1054,22 @@ When you send an email with the "Microsoft" mail type, you must pass an object t
1050
1054
|contentType|Text| The type of the content. Possible values are `"text"` and `"html"`|No|
1051
1055
1052
1056
#### recipient object
1057
+
1053
1058
| Property || Type | Description | Can be null of undefined |
1054
1059
|---|---|---|---|---|
1055
1060
|emailAddress||Object||Yes|
1056
1061
||address|Text|The email address of the person or entity.|No|
1057
1062
||name|Text| The display name of the person or entity.|Yes|
1058
1063
1059
1064
#### internetMessageHeader object
1065
+
1060
1066
| Property | Type | Description | Can be null of undefined |
1061
1067
|---|---|---|---|
1062
1068
|name | Text|Represents the key in a key-value pair.|No|
1063
1069
|value|Text|The value in a key-value pair.|No|
1064
1070
1065
1071
#### followup flag object
1072
+
1066
1073
| Property | Type | Description |
1067
1074
|---|---|---|
1068
1075
|dueDateTime|[dateTime | TimeZone](#datetime-and-timezone)| The date and time that the follow up is to be finished. Note: To set the due date, you must also specify the `startDateTime`; otherwise, you will get a `400 Bad Request` response.|
@@ -1875,6 +1882,212 @@ To update a previously created label to 'Backup January':
|id|Text|->|The *resourceName* of the person to provide information about. Use the *resourceName* field returned by [Google.user.list()](#googleuserlist) to specify the person.|
1897
+
|select|Text \| Collection|->|Text: A comma-separated list of specific fields that you want to retrieve from each person (e.g., "names, phoneNumbers"). <br/>Collection: Collection of the specific fields.|
1898
+
|Result|Object|<-|Represents user's details, like names, emails, and phone numbers based on the selected fields.|
1899
+
1900
+
#### Description
1901
+
1902
+
`Google.user.get()` provides information about a [user](https://developers.google.com/people/api/rest/v1/people#Person) based on the *resourceName* provided in `id` and fields optionally specified in `select`.
The returned [user object](https://developers.google.com/people/api/rest/v1/people#Person) contains values for the specified field(s).
1910
+
1911
+
If no fields have been specified in `select`, `Google.user.get()` returns *emailAddresses* and *names*. Otherwise, it returns only the specified field(s).
1912
+
1913
+
#### Permissions
1914
+
1915
+
No authorization required to access public data. For private data, one of the following OAuth scopes is required:
|select|Text \| Collection|->|Text: A comma-separated list of specific fields that you want to retrieve from each person (e.g., "names, phoneNumbers"). <br/>Collection: Collection of the specific fields.|
1944
+
|Result|Object|<-|Represents user's details, like names, emails, and phone numbers based on the selected fields.|
1945
+
1946
+
#### Description
1947
+
1948
+
`Google.user.getCurrent()` provides information about the authenticated [user](https://developers.google.com/people/api/rest/v1/people#Person) based on fields specified in `select`.
The returned [user object](https://developers.google.com/people/api/rest/v1/people#Person) contains values for the specific field(s).
1955
+
1956
+
If no fields have been specified in `select`, `Google.user.getCurrent()` returns *emailAddresses* and *names*. Otherwise, it returns only the specified field(s).
1957
+
1958
+
#### Permissions
1959
+
1960
+
Requires the same OAuth scope package as [Google.user.get()](#permissions-15).
1961
+
1962
+
#### Example
1963
+
1964
+
To retrieve information from the current user:
1965
+
1966
+
```4d
1967
+
var $google : cs.NetKit.Google
1968
+
var $oauth2 : cs.NetKit.OAuth2Provider
1969
+
var $param : Object
1970
+
1971
+
// Set up parameters:
1972
+
$param:={}
1973
+
$param.name:="google"
1974
+
$param.permission:="signedIn"
1975
+
$param.clientId:="your-client-id" // Replace with your Google identity platform client ID
|options|Object|->|A set of options defining how to retrieve and filter user data|
2015
+
|Result|Object|<-|An object containing a structured collection of [user](https://developers.google.com/people/api/rest/v1/people#Person) data organized into pages|
2016
+
2017
+
#### Description
2018
+
2019
+
`Google.user.list()` provides a list of domain profiles or domain contacts in the authenticated user's domain directory.
2020
+
2021
+
> If the contact sharing or the External Directory sharing is not allowed in the Google admin, the returned `users` collection is empty.
2022
+
2023
+
In *options*, you can pass the following properties:
2024
+
2025
+
|Property|Type|Description|
2026
+
|---------|--- |------|
2027
+
|select|Text \| Collection|Text: A comma-separated list of specific fields that you want to retrieve from each person (e.g., "names, phoneNumbers"). <br/>Collection: Collection of the specific fields. <br/>If omitted, defaults to returning emailAddresses and names.|
|mergeSources|Text \| Collection|Adds related data if linked by verified join keys such as email addresses or phone numbers. <br/>- DIRECTORY_MERGE_SOURCE_TYPE_UNSPECIFIED (Unspecified), <br/>- DIRECTORY_MERGE_SOURCE_TYPE_CONTACT (User owned contact).|
2030
+
|top|Integer|Sets the maximum number of people to retrieve per page, between 1 and 1000 (default is 100).|
2031
+
2032
+
#### Returned object
2033
+
2034
+
The returned object holds a collection of [users objects](https://developers.google.com/people/api/rest/v1/people#Person) as well as [**status object**](status-object-google-class) properties and functions that allow you to navigate between different pages of results.
2035
+
2036
+
|Property|Type|Description|
2037
+
|---------|--- |------|
2038
+
|users|Collection|A collection of [user objects](https://developers.google.com/people/api/rest/v1/people#Person), each containing detailed information about individual users|
2039
+
|isLastPage|Boolean|Indicates whether the current page is the last one in the collection of user data.|
2040
+
|page|Integer|Represents the current page number of user information, starting from 1. By default, each page contains 100 results, but the page size limit can be adjusted using the *top* option.|
2041
+
|next()|Function|A function that retrieves the next page of user information. Returns True if successful; otherwise, returns False if there is no next page and the users collection is not updated.|
2042
+
|previous()|Function|A function that retrieves the previous page of user information. Returns True if successful; otherwise, returns False if there is no previous page and the users collection is not updated.|
2043
+
|success|Boolean|[see Status object](#status-object-google-class)|
2044
+
|statusText|Text|[see Status object](#status-object-google-class)|
2045
+
|errors|Collection|[see Status object](#status-object-google-class)|
2046
+
2047
+
#### Permissions
2048
+
2049
+
Requires the same OAuth scope package as [Google.user.get()](#permissions-15).
2050
+
2051
+
#### Example
2052
+
2053
+
To retrieve user data in a structured collection organized into pages with a maximum of `top` users per page:
2054
+
2055
+
```4d
2056
+
var $google : cs.NetKit.Google
2057
+
var $oauth2 : cs.NetKit.OAuth2Provider
2058
+
var $param : Object
2059
+
2060
+
$param:={}
2061
+
$param.name:="google"
2062
+
$param.permission:="signedIn"
2063
+
$param.clientId:="your-client-id" // Replace with your Google identity platform client ID
0 commit comments