import /microsoftgraph/msgraph-sdk-go/users You can customize the request to include the $select query parameter with a list of properties. Selecting just the required properties can improve the performance of the request. Also, returning the default set of properties isn't necessary in some scenarios. When retrieving an entity, not all properties are automatically retrieved sometimes, they need to be explicitly selected. Use $select to control the properties returned Result, _ := graphClient.Me().Get(context.Background(), nil)įinal User user = ().buildRequest().get() To read information from Microsoft Graph, you first need to create a request object and then run the GET method on the request. For more information on finding commands for API calls, see Navigating the Microsoft Graph PowerShell SDK. For example, to get a user's manager, the command is Get-MgUserManager. Instead, all requests are represented as PowerShell commands. There's also the Microsoft Graph PowerShell SDK, which has no client class. When you have a request object, you can specify various options, such as filtering and sorting, and finally, you select the type of operation you want to perform. There are two styles of client class: one uses a fluent interface to create the request (for example, ) and the other accepts a path string (for example, api("/users/user-id/manager")). Preference-applied: ack-changes, "$deltatoken=jVztGMFnm7qLEQ69FaXzWF5sPEJZU2YxZa32QEvnZTZ4q4C10ThM5uL7bEPm9ysqrxOY0QQIb4Uqmc9DH3rn7pczamvtCipDVJ4FivXh398.The Microsoft Graph SDK service libraries provide a client class to use as the starting point for creating all API requests. HTTP/1.1 200 OKĬontent-type: application/json tadata=minimal odata.streaming=true IEEE754Compatible=false charset=utf-8Ĭlient-request-id: 3acb384b-e2d1-4a46-a347-e03bc6428cac All the changed properties will be returned from an actual call. Note: The response object shown might be shortened for readability. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.įor details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation. Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For more information about these errors, see Common Planner error conditions. The most common errors that apps should handle for this method are the 403 and 404 responses. This method can return any of the HTTP status codes. If the that the caller uses is too old, this endpoint returns HTTP 410. If the that the caller uses is malformed, this endpoint returns HTTP 400. If successful, this method returns a 200 OK response code and a collection of changes to be applied to objects in the response body, and a Delta Sync link to follow. Request headers Nameĭon't supply a request body for this method. No additional query parameters (such as $select, $expand, or $filter) are currently supported on Planner's implementation of delta queries. To learn more about these permissions, see the permissions reference. For details about delegated and application permissions, see Permission types. Use a higher privileged permission or permissions only if your app requires it. Global serviceĬhoose the permission or permissions marked as least privileged for this API. This API is available in the following national cloud deployments. The return value of this method might contain heterogeneous types of objects from Planner.įor more information about tracking changes in Microsoft Graph data, see Use delta query to track changes in Microsoft Graph data. This method allows your application to track changes to objects that the user can access from within Planner over time. Retrieves changes to objects that the user is subscribed to. To determine whether an API is available in v1.0, use the Version selector. Use of these APIs in production applications is not supported. APIs under the /beta version in Microsoft Graph are subject to change.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |