Incorporate Auth into all the parts

This commit is contained in:
Richard Feldman
2016-04-02 07:21:58 -07:00
parent f35c319a6f
commit 543490f160
24 changed files with 50 additions and 39 deletions

View File

@@ -3,6 +3,7 @@ module Main (..) where
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
import Auth
import StartApp
import Http
import Task exposing (Task)
@@ -37,7 +38,9 @@ searchFeed query =
let
-- See https://developer.github.com/v3/search/#example for how to customize!
url =
"https://api.github.com/search/repositories?q="
"https://api.github.com/search/repositories?access_token="
++ Auth.token
++ "&q="
++ query
++ "+language:elm&sort=stars&order=desc"
in