Skip to content

Commit

Permalink
small documentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dephea committed Mar 20, 2024
1 parent f523932 commit 58a42e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions pkg/categories/categories.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,61 +6,61 @@ type GreenAPICategories struct {
GreenAPI methods.GreenAPIInterface
}

// This section presents methods for working with the account.
// Account category presents methods for working with the account.
// https://green-api.com/en/docs/api/account/
func (c GreenAPICategories) Account() methods.AccountCategory {
return methods.AccountCategory{GreenAPI: c.GreenAPI}
}

// This section presents methods for working with the device (phone).
// Device category presents methods for working with the device (phone).
// https://green-api.com/en/docs/api/phone/
func (c GreenAPICategories) Device() methods.DeviceCategory {
return methods.DeviceCategory{GreenAPI: c.GreenAPI}
}

// This section presents methods for working with group chats.
// Groups category presents methods for working with group chats.
// https://green-api.com/en/docs/api/groups/
func (c GreenAPICategories) Groups() methods.GroupsCategory {
return methods.GroupsCategory{GreenAPI: c.GreenAPI}
}

// This section presents methods for working with incoming and outgoing messages.
// Journals present methods for working with incoming and outgoing messages.
// https://green-api.com/en/docs/api/journals/
func (c GreenAPICategories) Journals() methods.JournalsCategory {
return methods.JournalsCategory{GreenAPI: c.GreenAPI}
}

// This section presents methods for working with a messages queue.
// Queues category presents methods for working with a messages queue.
// https://green-api.com/en/docs/api/queues/
func (c GreenAPICategories) Queues() methods.QueuesCategory {
return methods.QueuesCategory{GreenAPI: c.GreenAPI}
}

// This section presents methods for working with chat read mark.
// ReadMark category presents methods for working with chat read mark.
// https://green-api.com/en/docs/api/marks/
func (c GreenAPICategories) ReadMark() methods.ReadMarkCategory {
return methods.ReadMarkCategory{GreenAPI: c.GreenAPI}
}

// This section presents methods for working with receiving events.
// Receiving category presents methods for working with receiving events.
// https://green-api.com/en/docs/api/receiving/
func (c GreenAPICategories) Receiving() methods.ReceivingCategory {
return methods.ReceivingCategory{GreenAPI: c.GreenAPI}
}

// This section presents methods for sending different messages.
// Sending category presents methods for sending different messages.
// https://green-api.com/en/docs/api/sending/
func (c GreenAPICategories) Sending() methods.SendingCategory {
return methods.SendingCategory{GreenAPI: c.GreenAPI}
}

// This section presents different service methods.
// Service category presents different service methods.
// https://green-api.com/en/docs/api/service/
func (c GreenAPICategories) Service() methods.ServiceCategory {
return methods.ServiceCategory{GreenAPI: c.GreenAPI}
}

// This section presents exclusive methods for partners.
// Partner category presents exclusive methods for partners.
// The partnership scheme involves deeper integration with the service
// and working with a larger number of instances on your side:
//
Expand Down
2 changes: 1 addition & 1 deletion pkg/categories/methods/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type DeviceCategory struct {

// GetDeviceInfo is designed to get information about the device (phone)
// on which the WhatsApp Business application is running.
// https://green-api.com/en/docs/api/phone/
// https://green-api.com/en/docs/api/phone/GetDeviceInfo/
func (c DeviceCategory) GetDeviceInfo() (map[string]interface{}, error) {
return c.GreenAPI.Request("GET", "getDeviceInfo", nil, "")
}

0 comments on commit 58a42e4

Please sign in to comment.