Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add layout tag to format dates in ISO8601 in query params #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions sdk/meetings_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,11 @@ func (s *MeetingsService) GetMeeting(meetingID string) (*Meeting, *resty.Respons

// ListMeetingsQueryParams are the query params for the ListMeetings API Call
type ListMeetingsQueryParams struct {
RoomID string `url:"roomId,omitempty"` // List meetings for a room, by ID.
MentionedPeople string `url:"mentionedPeople,omitempty"` // List meetings where the caller is mentioned by specifying *me* or the caller personId.
Before time.Time `url:"before,omitempty"` // List meetings sent before a date and time, in ISO8601 format. Format: yyyy-MM-dd'T'HH:mm:ss.SSSZ
BeforeMeeting string `url:"beforeMeeting,omitempty"` // List meetings sent before a meeting, by ID.
Max int `url:"max,omitempty"` // Limit the maximum number of items in the response.
RoomID string `url:"roomId,omitempty"` // List meetings for a room, by ID.
MentionedPeople string `url:"mentionedPeople,omitempty"` // List meetings where the caller is mentioned by specifying *me* or the caller personId.
Before time.Time `url:"before,omitempty" layout:"2006-01-02T15:04:05.005Z"` // List meetings sent before a date and time, in ISO8601 format. Format: yyyy-MM-dd'T'HH:mm:ss.SSSZ
BeforeMeeting string `url:"beforeMeeting,omitempty"` // List meetings sent before a meeting, by ID.
Max int `url:"max,omitempty"` // Limit the maximum number of items in the response.
Paginate bool // Indicates if pagination is needed
}

Expand Down
10 changes: 5 additions & 5 deletions sdk/messages_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,11 @@ func (s *MessagesService) GetMessage(messageID string) (*Message, *resty.Respons

// ListMessagesQueryParams are the query params for the ListMessages API Call
type ListMessagesQueryParams struct {
RoomID string `url:"roomId,omitempty"` // List messages for a room, by ID.
MentionedPeople string `url:"mentionedPeople,omitempty"` // List messages where the caller is mentioned by specifying *me* or the caller personId.
Before time.Time `url:"before,omitempty"` // List messages sent before a date and time, in ISO8601 format. Format: yyyy-MM-dd'T'HH:mm:ss.SSSZ
BeforeMessage string `url:"beforeMessage,omitempty"` // List messages sent before a message, by ID.
Max int `url:"max,omitempty"` // Limit the maximum number of items in the response.
RoomID string `url:"roomId,omitempty"` // List messages for a room, by ID.
MentionedPeople string `url:"mentionedPeople,omitempty"` // List messages where the caller is mentioned by specifying *me* or the caller personId.
Before time.Time `url:"before,omitempty" layout:"2006-01-02T15:04:05.005Z"` // List messages sent before a date and time, in ISO8601 format. Format: yyyy-MM-dd'T'HH:mm:ss.SSSZ
BeforeMessage string `url:"beforeMessage,omitempty"` // List messages sent before a message, by ID.
Max int `url:"max,omitempty"` // Limit the maximum number of items in the response.
Paginate bool // Indicates if pagination is needed
}

Expand Down