在R中发布API请求

时间:2019-04-24 11:45:28

标签: r api post

我想在R(https://www.textrazor.com/docs/rest)中使用textrazor RET API。

波纹管返回400状态和错误

未提供编码:默认为UTF-8。

[1] "{\"ok\":false, \"time\":0, \"error\":\"Please provide a TextRazor API Key in either the X-TextRazor-Key header, or apiKey POST Param\"}\n" 

我的代码:

base <- "http://api.textrazor.com/"
tekst <- "Stagnacja, znużenie i brak możliwości rozwoju działają frustrująco."
pobranie_api7 <- POST(url=base,extractors="words", text=tekst)

0 个答案:

没有答案
相关问题