2024-09-01 16:50:40 +00:00
|
|
|
# \UserApi
|
2024-07-20 17:18:49 +00:00
|
|
|
|
|
|
|
All URIs are relative to */api/v1*
|
|
|
|
|
|
|
|
Method | HTTP request | Description
|
|
|
|
------------- | ------------- | -------------
|
2024-09-01 16:50:40 +00:00
|
|
|
[**UserTaskPost**](UserApi.md#UserTaskPost) | **Post** /user/task | Start scraping all user sources
|
|
|
|
[**UserTaskUserIdGet**](UserApi.md#UserTaskUserIdGet) | **Get** /user/task/{user_id} | Gets all tasks of a user
|
2024-07-20 17:18:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-01 16:50:40 +00:00
|
|
|
## UserTaskPost
|
2024-07-20 17:18:49 +00:00
|
|
|
|
2024-09-01 16:50:40 +00:00
|
|
|
> [][]TaskResponse UserTaskPost(ctx).Execute()
|
2024-07-20 17:18:49 +00:00
|
|
|
|
2024-09-01 16:50:40 +00:00
|
|
|
Start scraping all user sources
|
2024-07-20 17:18:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
|
|
|
```go
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2024-09-01 16:50:40 +00:00
|
|
|
"context"
|
|
|
|
"fmt"
|
|
|
|
"os"
|
|
|
|
openapiclient "./openapi"
|
2024-07-20 17:18:49 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2024-09-01 16:50:40 +00:00
|
|
|
|
|
|
|
configuration := openapiclient.NewConfiguration()
|
|
|
|
apiClient := openapiclient.NewAPIClient(configuration)
|
|
|
|
resp, r, err := apiClient.UserApi.UserTaskPost(context.Background()).Execute()
|
|
|
|
if err != nil {
|
|
|
|
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.UserTaskPost``: %v\n", err)
|
|
|
|
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
|
|
|
}
|
|
|
|
// response from `UserTaskPost`: [][]TaskResponse
|
|
|
|
fmt.Fprintf(os.Stdout, "Response from `UserApi.UserTaskPost`: %v\n", resp)
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### Path Parameters
|
|
|
|
|
|
|
|
This endpoint does not need any parameter.
|
|
|
|
|
|
|
|
### Other Parameters
|
|
|
|
|
|
|
|
Other parameters are passed through a pointer to a apiUserTaskPostRequest struct via the builder pattern
|
|
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
|
|
|
[**[][]TaskResponse**](array.md)
|
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
- **Content-Type**: Not defined
|
|
|
|
- **Accept**: */*
|
|
|
|
|
|
|
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
|
|
|
[[Back to Model list]](../README.md#documentation-for-models)
|
|
|
|
[[Back to README]](../README.md)
|
|
|
|
|
|
|
|
|
|
|
|
## UserTaskUserIdGet
|
|
|
|
|
|
|
|
> []TaskResponse UserTaskUserIdGet(ctx, userId).Execute()
|
|
|
|
|
|
|
|
Gets all tasks of a user
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
|
|
|
```go
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"fmt"
|
|
|
|
"os"
|
|
|
|
openapiclient "./openapi"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
userId := "userId_example" // string | User ID
|
|
|
|
|
|
|
|
configuration := openapiclient.NewConfiguration()
|
|
|
|
apiClient := openapiclient.NewAPIClient(configuration)
|
|
|
|
resp, r, err := apiClient.UserApi.UserTaskUserIdGet(context.Background(), userId).Execute()
|
|
|
|
if err != nil {
|
|
|
|
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.UserTaskUserIdGet``: %v\n", err)
|
|
|
|
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
|
|
|
}
|
|
|
|
// response from `UserTaskUserIdGet`: []TaskResponse
|
|
|
|
fmt.Fprintf(os.Stdout, "Response from `UserApi.UserTaskUserIdGet`: %v\n", resp)
|
2024-07-20 17:18:49 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### Path Parameters
|
|
|
|
|
|
|
|
|
|
|
|
Name | Type | Description | Notes
|
|
|
|
------------- | ------------- | ------------- | -------------
|
|
|
|
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
2024-09-01 16:50:40 +00:00
|
|
|
**userId** | **string** | User ID |
|
2024-07-20 17:18:49 +00:00
|
|
|
|
|
|
|
### Other Parameters
|
|
|
|
|
2024-09-01 16:50:40 +00:00
|
|
|
Other parameters are passed through a pointer to a apiUserTaskUserIdGetRequest struct via the builder pattern
|
2024-07-20 17:18:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
Name | Type | Description | Notes
|
|
|
|
------------- | ------------- | ------------- | -------------
|
|
|
|
|
|
|
|
|
|
|
|
### Return type
|
|
|
|
|
2024-09-01 16:50:40 +00:00
|
|
|
[**[]TaskResponse**](TaskResponse.md)
|
2024-07-20 17:18:49 +00:00
|
|
|
|
|
|
|
### Authorization
|
|
|
|
|
|
|
|
No authorization required
|
|
|
|
|
|
|
|
### HTTP request headers
|
|
|
|
|
|
|
|
- **Content-Type**: Not defined
|
2024-09-01 16:50:40 +00:00
|
|
|
- **Accept**: */*
|
2024-07-20 17:18:49 +00:00
|
|
|
|
|
|
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
|
|
|
|
[[Back to Model list]](../README.md#documentation-for-models)
|
|
|
|
[[Back to README]](../README.md)
|
|
|
|
|