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

@@ -4,6 +4,7 @@ import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
import Http
import Auth
import Task exposing (Task)
import Effects exposing (Effects)
import Json.Decode exposing (Decoder, (:=))
@@ -17,9 +18,11 @@ 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"
++ "+language:elm&sort=stars&order=desc"
task =
Http.get responseDecoder url