Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: e2cd6dc0bc
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (35 sloc) 1.119 kB
package org.grails.plugin.foursquare
import org.codehaus.groovy.grails.commons.ConfigurationHolder
class FoursquareService {
static transactional = false
@Delegate UserService userService
@Delegate VenueService venueService
@Delegate CheckinsService checkinsService
String getResponseFromFourSquare(String urlPath) {
String responseData
try {
URL url = new URL(urlPath)
responseData = url.text
} catch (Exception e) {
e.printStackTrace()
}
return responseData
}
String getResponseOfFoursquareQuery(String urlString) {
println("****** Querying URL: ${urlString}")
String responseString = ''
try {
URL page = new URL(urlString);
responseString = page.text
} catch (Exception e) {
e.printStackTrace()
}
return responseString
}
public getClientSecret() {
return ConfigurationHolder.config.fourSquare.secret
}
public getClientId() {
return ConfigurationHolder.config.fourSquare.clientId
}
}
Jump to Line
Something went wrong with that request. Please try again.