All URIs are relative to https://localhost:9200/graph
| Method | HTTP request | Description |
|---|---|---|
| GetUserPhoto | Get /v1.0/users/{user-id}/photo/$value | Get the photo of a user |
io.Reader GetUserPhoto(ctx, userId).Execute()
Get the photo of a user
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/opencloud-eu/libre-graph-api-go"
)
func main() {
userId := "userId_example" // string | key: id or name of user
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserPhotoApi.GetUserPhoto(context.Background(), userId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserPhotoApi.GetUserPhoto``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetUserPhoto`: io.Reader
fmt.Fprintf(os.Stdout, "Response from `UserPhotoApi.GetUserPhoto`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| userId | string | key: id or name of user |
Other parameters are passed through a pointer to a apiGetUserPhotoRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: image/jpeg, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]