mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 04:20:46 +00:00
3.6 KiB
3.6 KiB
\SecurityApi
All URIs are relative to http://10.10.10.47:32400
| Method | HTTP request | Description |
|---|---|---|
| GetSourceConnectionInformation | Get /security/resources | Get Source Connection Information |
| GetTransientToken | Get /security/token | Get a Transient Token. |
GetSourceConnectionInformation
GetSourceConnectionInformation(ctx).Source(source).Execute()
Get Source Connection Information
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
source := TODO // interface{} | The source identifier with an included prefix.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SecurityApi.GetSourceConnectionInformation(context.Background()).Source(source).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.GetSourceConnectionInformation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiGetSourceConnectionInformationRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| source | interface{} | The source identifier with an included prefix. |
Return type
(empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetTransientToken
GetTransientToken(ctx).Type_(type_).Scope(scope).Execute()
Get a Transient Token.
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
type_ := TODO // interface{} | `delegation` - This is the only supported `type` parameter.
scope := TODO // interface{} | `all` - This is the only supported `scope` parameter.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SecurityApi.GetTransientToken(context.Background()).Type_(type_).Scope(scope).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.GetTransientToken``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiGetTransientTokenRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| type_ | interface{} | `delegation` - This is the only supported `type` parameter. | |
| scope | interface{} | `all` - This is the only supported `scope` parameter. |
Return type
(empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]