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

Examples? #16

Closed
ambiflextrous opened this issue Jul 28, 2018 · 5 comments
Closed

Examples? #16

ambiflextrous opened this issue Jul 28, 2018 · 5 comments

Comments

@ambiflextrous
Copy link

How to I actually use this? Need examples.

@Omie
Copy link
Contributor

Omie commented Jul 28, 2018

Hey, sorry, we are quite caught up to maintain this project. Please let me know if you have any specific question, would try my best to help you out.

@ambiflextrous
Copy link
Author

I want to know how to send a simple text message to a number just for testing.

package main
import "github.comhaxpax/gosms"

func main(){
// code to send message
msg := {
"messages": [
    {
      "uuid": "id number of huawei modem",
      "mobile": "phone number",
      "body": "Hey! Just playing around with gosms.",
      "status": 1
    },
  ]
}



Is this how you use it??

@ambiflextrous
Copy link
Author

I'm a golang newbie

@Omie
Copy link
Contributor

Omie commented Jul 30, 2018

Hi
before getting in code etc, have you set it up using external dongle device and SIM card with active SMS plan? Once you are setup with device and a SIM card, you can either use API interface to enqueue a message using given API endpoint.

@ambiflextrous
Copy link
Author

Yes I've set up an external dongle device and SIM card with active SMS plan.
I'm having trouble with the API part, I guess I need to read more about how to use external libraries in golang.

@Omie Omie closed this as completed Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants