converting response from local url to dict, and decoding unicode before returning access credentials