Hopefully fixs #54. Use HTTPS

This commit is contained in:
Chris Sexton 2014-04-20 15:24:45 -04:00
parent 1827765a4d
commit 04839d5d2e
1 changed files with 5 additions and 4 deletions

View File

@ -6,16 +6,17 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"github.com/chrissexton/alepale/bot"
"io/ioutil" "io/ioutil"
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"
"log" "log"
"math/rand" "math/rand"
"net/http" "net/http"
"strconv" "strconv"
"strings" "strings"
"time" "time"
"github.com/chrissexton/alepale/bot"
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"
) )
// This is a skeleton plugin to serve as an example and quick copy/paste for new plugins. // This is a skeleton plugin to serve as an example and quick copy/paste for new plugins.
@ -298,7 +299,7 @@ type untappdUser struct {
func (p *BeersPlugin) pullUntappd() ([]checkin, error) { func (p *BeersPlugin) pullUntappd() ([]checkin, error) {
access_token := "?access_token=" + p.Bot.Config.UntappdToken access_token := "?access_token=" + p.Bot.Config.UntappdToken
baseUrl := "http://api.untappd.com/v4/checkin/recent/" baseUrl := "https://api.untappd.com/v4/checkin/recent/"
url := baseUrl + access_token + "&limit=25" url := baseUrl + access_token + "&limit=25"