Skip to content

Instantly share code, notes, and snippets.

@pratheepchowdhary
Created May 13, 2018 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pratheepchowdhary/c8ea564180f5216dd56be565e16309b3 to your computer and use it in GitHub Desktop.
Save pratheepchowdhary/c8ea564180f5216dd56be565e16309b3 to your computer and use it in GitHub Desktop.
static def getArticleUrl() {
def Properties props = new Properties()
props.load(new FileInputStream(new File('secrets.properties')))
return props['ARTICLE_URL']
}
static def getTMDBApiKey() {
def Properties props = new Properties()
props.load(new FileInputStream(new File('secrets.properties')))
return props['TMDB_API_KEY']
}
static def getFACEBOOKApiKey() {
def Properties props = new Properties()
props.load(new FileInputStream(new File('secrets.properties')))
return props['FACEBOOK_API_KEY']
}
static def getNewsURL() {
def Properties props = new Properties()
props.load(new FileInputStream(new File('secrets.properties')))
return props['NEWS_URL']
}
static def getImageURL() {
def Properties props = new Properties()
props.load(new FileInputStream(new File('secrets.properties')))
return props['IMAGE_URL']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment