Created
July 23, 2016 13:51
-
-
Save conanak99/7d53b9d9d21f9149670dff92d55ccf1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
request({ | |
url: this._analyzeApiUrl, // Thay bằng URL của API | |
headers: { | |
"Ocp-Apim-Subscription-Key": this._analyzeKey // Thay bằng key của bạn | |
}, | |
method: "POST", | |
json: true, | |
body: { | |
"url": imageUrl // Thay bằng url của hình ảnh | |
} | |
}, (err, response, body) => { | |
// Lấy kết quả trong body | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment