/// <summary> /// Get links for current user /// </summary> /// <returns></returns> public async Task<Home> Home() { try { //create new client because Home uses /rest/v1 isntead of /rest/system/check var client = new InBloomHttpClient(_client.token, Properties.Settings.Default.InBloomApiSandboxUrl); var response = await client.GetDataString(Constants.Session.HOME); var content = await response.Content.ReadAsStringAsync(); var result = JsonConvert.DeserializeObject<Home>(content); return result; } catch (Exception e) { //log here throw; } }
public SessionService(string token) { _client = new InBloomHttpClient(token, Properties.Settings.Default.InBloomApiSandboxSessionUrl); }
public StaffService(string token) { _client = new InBloomHttpClient(token); }