質問編集履歴
1
文法の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,10 +2,68 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
Date: Mon, 11 Nov 2019 12:47:39 GMT
|
6
|
-
|
7
|
-
Content-Length: 224
|
8
5
|
|
9
6
|
|
10
7
|
|
11
|
-
|
8
|
+
|
9
|
+
応答状況
|
10
|
+
|
11
|
+
401許可拒否
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
応答遅延
|
16
|
+
|
17
|
+
7ミリ秒
|
18
|
+
|
19
|
+
回答内容
|
20
|
+
|
21
|
+
日付:2019年11月12日火曜日01:07:53 GMT
|
22
|
+
|
23
|
+
コンテンツの長さ:224
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
{"エラー":{"コード": "401"、 "メッセージ": "無効なサブスクリプションキーまたは間違ったAPIエンドポイントによりアクセスが拒否されました。アクティブなサブスクリプションに有効なキーを提供し、リソース。 "}}
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
分からなかった事: 間違ったAPIエンドポイントによりアクセスが拒否されましたという部分や、アクティブなサブスクリプションに有効なキーを提供し、リソースと言う部分です。
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
試した事:
|
40
|
+
|
41
|
+
「APIキー・・・・・・・・・・・・・」
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
リクエストURL
|
46
|
+
|
47
|
+
https://japaneast.api.cognitive.microsoft.com/face/v1.0/detect?returnFaceId=true&returnFaceLandmarks=false&recognitionModel=recognition_01&returnRecognitionModel=false&detectionModel=detection_01
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
HTTPリクエスト
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
POST https://japaneast.api.cognitive.microsoft.com/face/v1.0/detect?returnFaceId=true&returnFaceLandmarks=false&recognitionModel=recognition_01&returnRecognitionModel=false&detectionModel=detection_01 HTTP/1.1
|
56
|
+
|
57
|
+
Host: japaneast.api.cognitive.microsoft.com
|
58
|
+
|
59
|
+
Content-Type: application/json
|
60
|
+
|
61
|
+
Ocp-Apim-Subscription-Key: ••••••••••••••••••••••••••••••••
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
{
|
66
|
+
|
67
|
+
"url": "https://www.pakutaso.com/shared/img/thumb/babyFTHG7633_TP_V.jpg"
|
68
|
+
|
69
|
+
}
|