Add token when call location api
This commit is contained in:
parent
c84b4707e3
commit
dde8e686fc
@ -5,6 +5,6 @@
|
||||
|
||||
public interface ILocationService
|
||||
{
|
||||
Task UpdateUserLocation(LocationRequest newLocReq);
|
||||
Task UpdateUserLocation(LocationRequest newLocReq, string token);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user