Skip to content

Commit

Permalink
Update examples with other search terms
Browse files Browse the repository at this point in the history
  • Loading branch information
zachaysan committed Feb 2, 2015
1 parent 710f3fd commit e6545d0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions examples.go
Expand Up @@ -25,3 +25,27 @@ func photoSearchExample() {
fmt.Println("errors:", err)
fmt.Printf("%+v\n", photoSearchResp)
}

func photoSearchByTagExample() {
fhpApi := NewFhpApi()
values := url.Values{}

photoSearchResp, err := fhpApi.SearchPhotosByTag("bike", values)
fmt.Println("errors:", err)
fmt.Printf("%+v\n", photoSearchResp)
}

func photoSearchByGeoExample() {

// CN Tower
latitude := 43.642566
longitude := -79.387057
radius := "1km"

fhpApi := NewFhpApi()
values := url.Values{}

photoSearchResp, err := fhpApi.SearchPhotosByGeo(latitude, longitude, radius, values)
fmt.Println("errors:", err)
fmt.Printf("%+v\n", photoSearchResp)
}

0 comments on commit e6545d0

Please sign in to comment.