All URIs are relative to https://api.reveng.ai
| Method | HTTP request | Description |
|---|---|---|
| BulkAddAnalysisTags | Patch /v2/analyses/tags/add | Bulk Add Analysis Tags |
| CreateAnalysis | Post /v2/analyses | Create Analysis |
| DeleteAnalysis | Delete /v2/analyses/{analysis_id} | Delete Analysis |
| GetAnalysisBasicInfo | Get /v2/analyses/{analysis_id}/basic | Gets basic analysis information |
| GetAnalysisFunctionMap | Get /v2/analyses/{analysis_id}/func_maps | Get Analysis Function Map |
| GetAnalysisLogs | Get /v2/analyses/{analysis_id}/logs | Gets the logs of an analysis |
| GetAnalysisParams | Get /v2/analyses/{analysis_id}/params | Gets analysis param information |
| GetAnalysisStatus | Get /v2/analyses/{analysis_id}/status | Gets the status of an analysis |
| InsertAnalysisLog | Post /v2/analyses/{analysis_id}/logs | Insert a log entry for an analysis |
| ListAnalyses | Get /v2/analyses/list | Gets the most recent analyses |
| LookupBinaryId | Get /v2/analyses/lookup/{binary_id} | Gets the analysis ID from binary ID |
| RequeueAnalysis | Post /v2/analyses/{analysis_id}/requeue | Requeue Analysis |
| UpdateAnalysis | Patch /v2/analyses/{analysis_id} | Update Analysis |
| UpdateAnalysisTags | Patch /v2/analyses/{analysis_id}/tags | Update Analysis Tags |
| UploadFile | Post /v2/upload | Upload File |
BaseResponseAnalysisBulkAddTagsResponse BulkAddAnalysisTags(ctx).AnalysisBulkAddTagsRequest(analysisBulkAddTagsRequest).Execute()
Bulk Add Analysis Tags
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
analysisBulkAddTagsRequest := *revengai.NewAnalysisBulkAddTagsRequest([]string{"Tags_example"}, []int32{int32(123)}) // AnalysisBulkAddTagsRequest |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AnalysesCoreAPI.BulkAddAnalysisTags(context.Background()).AnalysisBulkAddTagsRequest(analysisBulkAddTagsRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AnalysesCoreAPI.BulkAddAnalysisTags``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `BulkAddAnalysisTags`: BaseResponseAnalysisBulkAddTagsResponse
fmt.Fprintf(os.Stdout, "Response from `AnalysesCoreAPI.BulkAddAnalysisTags`: %v\n", resp)
}Other parameters are passed through a pointer to a apiBulkAddAnalysisTagsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| analysisBulkAddTagsRequest | AnalysisBulkAddTagsRequest |
BaseResponseAnalysisBulkAddTagsResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseAnalysisCreateResponse CreateAnalysis(ctx).AnalysisCreateRequest(analysisCreateRequest).XRevEngApplication(xRevEngApplication).Execute()
Create Analysis
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
analysisCreateRequest := *revengai.NewAnalysisCreateRequest("Filename_example", "Sha256Hash_example") // AnalysisCreateRequest |
xRevEngApplication := "xRevEngApplication_example" // string | (optional)
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AnalysesCoreAPI.CreateAnalysis(context.Background()).AnalysisCreateRequest(analysisCreateRequest).XRevEngApplication(xRevEngApplication).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AnalysesCoreAPI.CreateAnalysis``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateAnalysis`: BaseResponseAnalysisCreateResponse
fmt.Fprintf(os.Stdout, "Response from `AnalysesCoreAPI.CreateAnalysis`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateAnalysisRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| analysisCreateRequest | AnalysisCreateRequest | ||
| xRevEngApplication | string |
BaseResponseAnalysisCreateResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseDict DeleteAnalysis(ctx, analysisId).Execute()
Delete Analysis
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
analysisId := int32(56) // int32 |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AnalysesCoreAPI.DeleteAnalysis(context.Background(), analysisId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AnalysesCoreAPI.DeleteAnalysis``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteAnalysis`: BaseResponseDict
fmt.Fprintf(os.Stdout, "Response from `AnalysesCoreAPI.DeleteAnalysis`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| analysisId | int32 |
Other parameters are passed through a pointer to a apiDeleteAnalysisRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseBasic GetAnalysisBasicInfo(ctx, analysisId).Execute()
Gets basic analysis information
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
analysisId := int32(56) // int32 |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AnalysesCoreAPI.GetAnalysisBasicInfo(context.Background(), analysisId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AnalysesCoreAPI.GetAnalysisBasicInfo``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAnalysisBasicInfo`: BaseResponseBasic
fmt.Fprintf(os.Stdout, "Response from `AnalysesCoreAPI.GetAnalysisBasicInfo`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| analysisId | int32 |
Other parameters are passed through a pointer to a apiGetAnalysisBasicInfoRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseAnalysisFunctionMapping GetAnalysisFunctionMap(ctx, analysisId).Execute()
Get Analysis Function Map
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
analysisId := int32(56) // int32 |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AnalysesCoreAPI.GetAnalysisFunctionMap(context.Background(), analysisId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AnalysesCoreAPI.GetAnalysisFunctionMap``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAnalysisFunctionMap`: BaseResponseAnalysisFunctionMapping
fmt.Fprintf(os.Stdout, "Response from `AnalysesCoreAPI.GetAnalysisFunctionMap`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| analysisId | int32 |
Other parameters are passed through a pointer to a apiGetAnalysisFunctionMapRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
BaseResponseAnalysisFunctionMapping
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseLogs GetAnalysisLogs(ctx, analysisId).Execute()
Gets the logs of an analysis
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
analysisId := int32(56) // int32 |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AnalysesCoreAPI.GetAnalysisLogs(context.Background(), analysisId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AnalysesCoreAPI.GetAnalysisLogs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAnalysisLogs`: BaseResponseLogs
fmt.Fprintf(os.Stdout, "Response from `AnalysesCoreAPI.GetAnalysisLogs`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| analysisId | int32 |
Other parameters are passed through a pointer to a apiGetAnalysisLogsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseParams GetAnalysisParams(ctx, analysisId).Execute()
Gets analysis param information
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
analysisId := int32(56) // int32 |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AnalysesCoreAPI.GetAnalysisParams(context.Background(), analysisId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AnalysesCoreAPI.GetAnalysisParams``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAnalysisParams`: BaseResponseParams
fmt.Fprintf(os.Stdout, "Response from `AnalysesCoreAPI.GetAnalysisParams`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| analysisId | int32 |
Other parameters are passed through a pointer to a apiGetAnalysisParamsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseStatus GetAnalysisStatus(ctx, analysisId).Execute()
Gets the status of an analysis
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
analysisId := int32(56) // int32 |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AnalysesCoreAPI.GetAnalysisStatus(context.Background(), analysisId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AnalysesCoreAPI.GetAnalysisStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAnalysisStatus`: BaseResponseStatus
fmt.Fprintf(os.Stdout, "Response from `AnalysesCoreAPI.GetAnalysisStatus`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| analysisId | int32 |
Other parameters are passed through a pointer to a apiGetAnalysisStatusRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponse InsertAnalysisLog(ctx, analysisId).InsertAnalysisLogRequest(insertAnalysisLogRequest).Execute()
Insert a log entry for an analysis
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
analysisId := int32(56) // int32 |
insertAnalysisLogRequest := *revengai.NewInsertAnalysisLogRequest("Log_example") // InsertAnalysisLogRequest |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AnalysesCoreAPI.InsertAnalysisLog(context.Background(), analysisId).InsertAnalysisLogRequest(insertAnalysisLogRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AnalysesCoreAPI.InsertAnalysisLog``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `InsertAnalysisLog`: BaseResponse
fmt.Fprintf(os.Stdout, "Response from `AnalysesCoreAPI.InsertAnalysisLog`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| analysisId | int32 |
Other parameters are passed through a pointer to a apiInsertAnalysisLogRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
insertAnalysisLogRequest | InsertAnalysisLogRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseRecent ListAnalyses(ctx).SearchTerm(searchTerm).Workspace(workspace).Status(status).ModelName(modelName).DynamicExecutionStatus(dynamicExecutionStatus).Usernames(usernames).Sha256Hash(sha256Hash).Limit(limit).Offset(offset).OrderBy(orderBy).Order(order).Execute()
Gets the most recent analyses
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
searchTerm := "searchTerm_example" // string | (optional) (default to "")
workspace := []revengai.Workspace{revengai.Workspace("personal")} // []Workspace | The workspace to be viewed (optional) (default to {"personal"})
status := []revengai.StatusInput{revengai.Status-Input("Uploaded")} // []StatusInput | The status of the analysis (optional) (default to {"All"})
modelName := []revengai.ModelName{revengai.ModelName("binnet-0.7-x86-64-windows")} // []ModelName | Show analysis belonging to the model (optional)
dynamicExecutionStatus := revengai.DynamicExecutionStatus-Input("PENDING") // DynamicExecutionStatusInput | Show analysis that have a dynamic execution with the given status (optional)
usernames := []*string{"Inner_example"} // []*string | Show analysis belonging to the user (optional) (default to {})
sha256Hash := "sha256Hash_example" // string | (optional)
limit := int32(56) // int32 | (optional) (default to 20)
offset := int32(56) // int32 | (optional) (default to 0)
orderBy := revengai.app__api__rest__v2__analyses__enums__OrderBy("created") // AppApiRestV2AnalysesEnumsOrderBy | (optional) (default to "created")
order := revengai.Order("ASC") // Order | (optional) (default to "DESC")
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AnalysesCoreAPI.ListAnalyses(context.Background()).SearchTerm(searchTerm).Workspace(workspace).Status(status).ModelName(modelName).DynamicExecutionStatus(dynamicExecutionStatus).Usernames(usernames).Sha256Hash(sha256Hash).Limit(limit).Offset(offset).OrderBy(orderBy).Order(order).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AnalysesCoreAPI.ListAnalyses``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListAnalyses`: BaseResponseRecent
fmt.Fprintf(os.Stdout, "Response from `AnalysesCoreAPI.ListAnalyses`: %v\n", resp)
}Other parameters are passed through a pointer to a apiListAnalysesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| searchTerm | string | [default to ""] | |
| workspace | []Workspace | The workspace to be viewed | [default to {"personal"}] |
| status | []StatusInput | The status of the analysis | [default to {"All"}] |
| modelName | []ModelName | Show analysis belonging to the model | |
| dynamicExecutionStatus | DynamicExecutionStatusInput | Show analysis that have a dynamic execution with the given status | |
| usernames | []string | Show analysis belonging to the user | [default to {}] |
| sha256Hash | string | ||
| limit | int32 | [default to 20] | |
| offset | int32 | [default to 0] | |
| orderBy | AppApiRestV2AnalysesEnumsOrderBy | [default to "created"] | |
| order | Order | [default to "DESC"] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
interface{} LookupBinaryId(ctx, binaryId).Execute()
Gets the analysis ID from binary ID
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
binaryId := int32(56) // int32 |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AnalysesCoreAPI.LookupBinaryId(context.Background(), binaryId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AnalysesCoreAPI.LookupBinaryId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `LookupBinaryId`: interface{}
fmt.Fprintf(os.Stdout, "Response from `AnalysesCoreAPI.LookupBinaryId`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| binaryId | int32 |
Other parameters are passed through a pointer to a apiLookupBinaryIdRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseCreated RequeueAnalysis(ctx, analysisId).ReAnalysisForm(reAnalysisForm).XRevEngApplication(xRevEngApplication).Execute()
Requeue Analysis
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
analysisId := int32(56) // int32 |
reAnalysisForm := *revengai.NewReAnalysisForm() // ReAnalysisForm |
xRevEngApplication := "xRevEngApplication_example" // string | (optional)
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AnalysesCoreAPI.RequeueAnalysis(context.Background(), analysisId).ReAnalysisForm(reAnalysisForm).XRevEngApplication(xRevEngApplication).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AnalysesCoreAPI.RequeueAnalysis``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RequeueAnalysis`: BaseResponseCreated
fmt.Fprintf(os.Stdout, "Response from `AnalysesCoreAPI.RequeueAnalysis`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| analysisId | int32 |
Other parameters are passed through a pointer to a apiRequeueAnalysisRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
reAnalysisForm | ReAnalysisForm | | xRevEngApplication | string | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseAnalysisDetailResponse UpdateAnalysis(ctx, analysisId).AnalysisUpdateRequest(analysisUpdateRequest).Execute()
Update Analysis
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
analysisId := int32(56) // int32 |
analysisUpdateRequest := *revengai.NewAnalysisUpdateRequest() // AnalysisUpdateRequest |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AnalysesCoreAPI.UpdateAnalysis(context.Background(), analysisId).AnalysisUpdateRequest(analysisUpdateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AnalysesCoreAPI.UpdateAnalysis``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateAnalysis`: BaseResponseAnalysisDetailResponse
fmt.Fprintf(os.Stdout, "Response from `AnalysesCoreAPI.UpdateAnalysis`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| analysisId | int32 |
Other parameters are passed through a pointer to a apiUpdateAnalysisRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
analysisUpdateRequest | AnalysisUpdateRequest | |
BaseResponseAnalysisDetailResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseAnalysisUpdateTagsResponse UpdateAnalysisTags(ctx, analysisId).AnalysisUpdateTagsRequest(analysisUpdateTagsRequest).Execute()
Update Analysis Tags
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
analysisId := int32(56) // int32 |
analysisUpdateTagsRequest := *revengai.NewAnalysisUpdateTagsRequest([]string{"Tags_example"}) // AnalysisUpdateTagsRequest |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AnalysesCoreAPI.UpdateAnalysisTags(context.Background(), analysisId).AnalysisUpdateTagsRequest(analysisUpdateTagsRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AnalysesCoreAPI.UpdateAnalysisTags``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateAnalysisTags`: BaseResponseAnalysisUpdateTagsResponse
fmt.Fprintf(os.Stdout, "Response from `AnalysesCoreAPI.UpdateAnalysisTags`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| analysisId | int32 |
Other parameters are passed through a pointer to a apiUpdateAnalysisTagsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
analysisUpdateTagsRequest | AnalysisUpdateTagsRequest | |
BaseResponseAnalysisUpdateTagsResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseUploadResponse UploadFile(ctx).UploadFileType(uploadFileType).File(file).PackedPassword(packedPassword).ForceOverwrite(forceOverwrite).Execute()
Upload File
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
uploadFileType := revengai.UploadFileType("BINARY") // UploadFileType |
file := os.NewFile(1234, "some_file") // *os.File |
packedPassword := "packedPassword_example" // string | (optional)
forceOverwrite := true // bool | (optional) (default to false)
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AnalysesCoreAPI.UploadFile(context.Background()).UploadFileType(uploadFileType).File(file).PackedPassword(packedPassword).ForceOverwrite(forceOverwrite).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AnalysesCoreAPI.UploadFile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UploadFile`: BaseResponseUploadResponse
fmt.Fprintf(os.Stdout, "Response from `AnalysesCoreAPI.UploadFile`: %v\n", resp)
}Other parameters are passed through a pointer to a apiUploadFileRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| uploadFileType | UploadFileType | ||
| file | *os.File | ||
| packedPassword | string | ||
| forceOverwrite | bool | [default to false] |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]