Skip to content

Latest commit

 

History

History
75 lines (46 loc) · 1.89 KB

File metadata and controls

75 lines (46 loc) · 1.89 KB

\LocalAPI

All URIs are relative to https://api.unifapi.com

Method HTTP request Description
LocalSearchPost Post /local/search Search Local Finder

LocalSearchPost

LocalSearchPost200Response LocalSearchPost(ctx).LocalFinderRequest(localFinderRequest).Execute()

Search Local Finder

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/unifapi-agent/unifapi-sdk-go"
)

func main() {
	localFinderRequest := *openapiclient.NewLocalFinderRequest("Query_example") // LocalFinderRequest |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.LocalAPI.LocalSearchPost(context.Background()).LocalFinderRequest(localFinderRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `LocalAPI.LocalSearchPost``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `LocalSearchPost`: LocalSearchPost200Response
	fmt.Fprintf(os.Stdout, "Response from `LocalAPI.LocalSearchPost`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiLocalSearchPostRequest struct via the builder pattern

Name Type Description Notes
localFinderRequest LocalFinderRequest

Return type

LocalSearchPost200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]