FacePlusPlus, “error_message”: “MISSING_ARGUMENTS: api_key”, with React Native fetch request
- 阅读更多 关于 FacePlusPlus, “error_message”: “MISSING_ARGUMENTS: api_key”, with React Native fetch request
问题 I'm fairly new to react native and I'm trying to test out using the FacePlusPlus API (https://console.faceplusplus.com/documents/5679127). Here, I've tried putting 'api_key' in the body, however, I've also tried putting it in headers too. Neither has worked. componentDidMount() { var url = 'https://api-us.faceplusplus.com/facepp/v3/detect'; return fetch(url, { method: 'POST', headers: { Accept: 'application/json', 'Content-Type': 'application/json', }, body: JSON.stringify({ api_key: