Skip to content

Commit

Permalink
Fix _example
Browse files Browse the repository at this point in the history
  • Loading branch information
utahta committed Nov 21, 2017
1 parent 05fbaad commit 674f7d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _example/auth/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http"
"time"

"github.com/utahta/go-linenotify"
"github.com/utahta/go-linenotify/auth"
"github.com/utahta/go-linenotify/token"
)

Expand All @@ -17,7 +17,7 @@ var (
)

func Authorize(w http.ResponseWriter, req *http.Request) {
c, err := linenotify.NewAuthorization(ClientID, BaseURL+"/callback")
c, err := auth.New(ClientID, BaseURL+"/callback")
if err != nil {
fmt.Fprintf(w, "error:%v", err)
return
Expand All @@ -28,7 +28,7 @@ func Authorize(w http.ResponseWriter, req *http.Request) {
}

func Callback(w http.ResponseWriter, req *http.Request) {
resp, err := linenotify.ParseAuthorization(req)
resp, err := auth.ParseAuthorize(req)
if err != nil {
fmt.Fprintf(w, "error:%v", err)
return
Expand Down

0 comments on commit 674f7d9

Please sign in to comment.