我正在制作主要剧集,让亚马逊Alexa地址api在我使用AlexaSkillsKit.Net创建的C#Web Api应用程序中工作
x:Name="NestedDataGrid" PreviewMouseWheel="NestedDataGrid_PreviewMouseWheel"
我回复的回复如下:
var apiEndpoint = context.System.ApiEndpoint;
var deviceId = context.System.Device.DeviceId;
var apiAccessToken = context.System.ApiAccessToken;
var url = string.Format("{0}/v1/devices/{1}/settings/address", apiEndpoint, deviceId);
var client = new HttpClient();
client.DefaultRequestHeaders.Clear();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", apiAccessToken);
client.DefaultRequestHeaders.Add("User-Agent", "Request-Promise");
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
string response = client.GetAsync(url).Result.Content.ReadAsStringAsync().Result;
我不知道为什么我得到这个错误 我已获得应用程序权限以获取完整地址
答案 0 :(得分:0)
我有这个工作,我只需要将权限卡发回给用户
https://developer.amazon.com/docs/custom-skills/device-address-api.html