mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-28 07:26:57 +00:00
* docs: Create new CODING_GUIDELINES doc Rids excess contribution instructions from other packages Adds AGENTS.md file for the AI overlords Rids unused templates Updates ADD_NEW_EXCHANGE.md with minor fixes * docs: Fix linter issues and minor adjustments based on Copilot feedback * docs: Update coding guidelines for API parameters and testing practices * docs: Remove redundant GoDoc references Adds copilot-instructions.md * docs: Update CODING_GUIDELINES with export recommendations and test commentary * docs: Fix formatting inconsistencies in ADD_NEW_EXCHANGE.md links * docs: Update struct naming conventions for request and response types * docs: Improve clarity and consistency in ADD_NEW_EXCHANGE.md and CODING_GUIDELINES.md * refactor: Simplify error handling in QueryOrder method
44 lines
1.0 KiB
Cheetah
44 lines
1.0 KiB
Cheetah
{{define "communications smsglobal" -}}
|
|
{{template "header" .}}
|
|
## SMSGlobal Communications package
|
|
|
|
### What is SMSGlobal?
|
|
|
|
+ SMSGlobal allows bulk sending of messages via their API
|
|
+ Please visit: [SMSGlobal](https://www.smsglobal.com/) for more information and account setup
|
|
|
|
### Current Features
|
|
|
|
+ Sending of events to a list of recipients
|
|
|
|
### How to enable
|
|
|
|
+ [Enable via configuration](https://github.com/thrasher-corp/gocryptotrader/tree/master/config#enable-communications-via-config-example)
|
|
|
|
+ Individual package example below:
|
|
```go
|
|
import (
|
|
"github.com/thrasher-corp/gocryptotrader/communications/smsglobal"
|
|
"github.com/thrasher-corp/gocryptotrader/config"
|
|
)
|
|
|
|
s := new(smsglobal.SMSGlobal)
|
|
|
|
// Define SMSGlobal configuration
|
|
commsConfig := config.CommunicationsConfig{SMSGlobalConfig: config.SMSGlobalConfig{
|
|
Name: "SMSGlobal",
|
|
Enabled: true,
|
|
Verbose: false,
|
|
Username: "username",
|
|
Password: "password",
|
|
Contacts: []config.SMSContact{}
|
|
}}
|
|
|
|
s.Setup(commsConfig)
|
|
err := s.Connect
|
|
// Handle error
|
|
```
|
|
|
|
{{template "donations" .}}
|
|
{{end}}
|