Created
May 13, 2018 13:39
-
-
Save pratheepchowdhary/c8ea564180f5216dd56be565e16309b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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