Add function to get app credentials.
merge