Skip to content

This is a go service that will send the headlines of ign to your phone at noon each day using Twilio, and NewsAPI

Notifications You must be signed in to change notification settings

makinje16/ign-news

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Overview

This go service through the use of Twilio and NewsAPI will hit the NewsAPI endpoint for igns headlines and send them to your cellphone number along with a small description of the headline and a link to the article or video.

Build

To build this first cd into the directory of news.go then run

$ go build news.go

or if you want this to run without a window and just as a background process

$ go build -ldflags -H=windowsgui news.go

Setup

For this program to work you need to export these things in your environment:

export TWILIO_API_KEY=[api-key]
export TWILIO_SID=[account-sid]
export TWILIO_NUMBER=[your twilio number]
export NEWS_API_KEY=[api-key]

Both your Twilio API key and account SID can be found on your Twilio console

News API key can be found after signing up with https://newsapi.org/

Usage

The contract for this program is as follows:

./news <number to send messages to>

Note: the number needs to have the country Dialing code as well. So for the United States an example number would be +15555555555

About

This is a go service that will send the headlines of ign to your phone at noon each day using Twilio, and NewsAPI

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages