Add token when call location api

This commit is contained in:
Christian Arenas 2017-06-12 20:21:45 +02:00
parent c84b4707e3
commit dde8e686fc
2 changed files with 3 additions and 3 deletions

View File

@ -5,6 +5,6 @@
public interface ILocationService
{
Task UpdateUserLocation(LocationRequest newLocReq);
Task UpdateUserLocation(LocationRequest newLocReq, string token);
}
}

View File

@ -14,7 +14,7 @@
_requestProvider = requestProvider;
}
public async Task UpdateUserLocation(LocationRequest newLocReq)
public async Task UpdateUserLocation(LocationRequest newLocReq, string token)
{
UriBuilder builder = new UriBuilder(GlobalSetting.Instance.LocationEndpoint);
@ -22,7 +22,7 @@
string uri = builder.ToString();
var result = await _requestProvider.PostAsync(uri, newLocReq);
await _requestProvider.PostAsync(uri, newLocReq, token);
}
}
}