Skip to content

Latest commit

 

History

History
230 lines (150 loc) · 7.06 KB

File metadata and controls

230 lines (150 loc) · 7.06 KB

\MeetingsAPI

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

Method HTTP request Description
V2MeetingsGet Get /v2/meetings List meetings
V2MeetingsMeetingIdGet Get /v2/meetings/{meeting_id} Get a meeting
V2MeetingsPost Post /v2/meetings Find or create a meeting

V2MeetingsGet

V2MeetingsGet200Response V2MeetingsGet(ctx).Limit(limit).Cursor(cursor).LinkedObject(linkedObject).LinkedRecordId(linkedRecordId).Participants(participants).Sort(sort).EndsFrom(endsFrom).StartsBefore(startsBefore).Timezone(timezone).Execute()

List meetings

Example

package main

import (
	"context"
	"fmt"
	"os"
	libattio "github.com/sid6mathur/libattio"
)

func main() {
	limit := int32(50) // int32 |  (optional) (default to 50)
	cursor := "cursor_example" // string |  (optional)
	linkedObject := "linkedObject_example" // string |  (optional)
	linkedRecordId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |  (optional)
	participants := "participants_example" // string |  (optional) (default to "")
	sort := "sort_example" // string |  (optional) (default to "start_asc")
	endsFrom := "endsFrom_example" // string |  (optional)
	startsBefore := "startsBefore_example" // string |  (optional)
	timezone := "timezone_example" // string |  (optional) (default to "UTC")

	configuration := libattio.NewConfiguration()
	apiClient := libattio.NewAPIClient(configuration)
	resp, r, err := apiClient.MeetingsAPI.V2MeetingsGet(context.Background()).Limit(limit).Cursor(cursor).LinkedObject(linkedObject).LinkedRecordId(linkedRecordId).Participants(participants).Sort(sort).EndsFrom(endsFrom).StartsBefore(startsBefore).Timezone(timezone).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `MeetingsAPI.V2MeetingsGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `V2MeetingsGet`: V2MeetingsGet200Response
	fmt.Fprintf(os.Stdout, "Response from `MeetingsAPI.V2MeetingsGet`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
limit int32 [default to 50]
cursor string
linkedObject string
linkedRecordId string
participants string [default to ""]
sort string [default to "start_asc"]
endsFrom string
startsBefore string
timezone string [default to "UTC"]

Return type

V2MeetingsGet200Response

Authorization

oauth2

HTTP request headers

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

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

V2MeetingsMeetingIdGet

V2MeetingsPost200Response V2MeetingsMeetingIdGet(ctx, meetingId).Execute()

Get a meeting

Example

package main

import (
	"context"
	"fmt"
	"os"
	libattio "github.com/sid6mathur/libattio"
)

func main() {
	meetingId := "cb59ab17-ad15-460c-a126-0715617c0853" // string | 

	configuration := libattio.NewConfiguration()
	apiClient := libattio.NewAPIClient(configuration)
	resp, r, err := apiClient.MeetingsAPI.V2MeetingsMeetingIdGet(context.Background(), meetingId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `MeetingsAPI.V2MeetingsMeetingIdGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `V2MeetingsMeetingIdGet`: V2MeetingsPost200Response
	fmt.Fprintf(os.Stdout, "Response from `MeetingsAPI.V2MeetingsMeetingIdGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
meetingId string

Other Parameters

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

Name Type Description Notes

Return type

V2MeetingsPost200Response

Authorization

oauth2

HTTP request headers

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

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

V2MeetingsPost

V2MeetingsPost200Response V2MeetingsPost(ctx).V2MeetingsPostRequest(v2MeetingsPostRequest).Execute()

Find or create a meeting

Example

package main

import (
	"context"
	"fmt"
	"os"
    "time"
	libattio "github.com/sid6mathur/libattio"
)

func main() {
	v2MeetingsPostRequest := *libattio.NewV2MeetingsPostRequest(*libattio.NewV2MeetingsPostRequestData("Onboarding Session", "Getting you up to speed with the platform and answering any questions you have.", *libattio.NewV2MeetingsPostRequestDataStart(time.Now(), "2027-11-27"), *libattio.NewV2MeetingsPostRequestDataEnd(time.Now(), "2027-11-28"), false, []libattio.V2MeetingsPostRequestDataParticipantsInner{*libattio.NewV2MeetingsPostRequestDataParticipantsInner("person@company.com", *libattio.NewV2MeetingsPostRequestDataParticipantsInnerIsOrganizer(), "accepted")}, *libattio.NewV2MeetingsPostRequestDataExternalRef("1234567890", "google", false))) // V2MeetingsPostRequest | 

	configuration := libattio.NewConfiguration()
	apiClient := libattio.NewAPIClient(configuration)
	resp, r, err := apiClient.MeetingsAPI.V2MeetingsPost(context.Background()).V2MeetingsPostRequest(v2MeetingsPostRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `MeetingsAPI.V2MeetingsPost``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `V2MeetingsPost`: V2MeetingsPost200Response
	fmt.Fprintf(os.Stdout, "Response from `MeetingsAPI.V2MeetingsPost`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
v2MeetingsPostRequest V2MeetingsPostRequest

Return type

V2MeetingsPost200Response

Authorization

oauth2

HTTP request headers

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

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