- API ććć„ć”ć³ć
- ćÆććć«
- API ć使ēØćć
- API ćć„ć¼ććŖć¢ć«
- ę¦č¦
- å®č”å
- ćć¼ćæć»ćć
- ć³ć”ć³ć
- ę·»ä»ćć”ć¤ć«
- äŗęø¬
- ć¹ććŖć¼ć ćä½ęćć
- ć¹ććŖć¼ć ćę“ę°ćć
- ååć§ć¹ććŖć¼ć ćåå¾ćć
- ćć¹ć¦ć®ć¹ććŖć¼ć ćåå¾ćć
- ć¹ććŖć¼ć ćåé¤ćć
- ć¹ććŖć¼ć ććēµęćåå¾ćć
- ć¹ććŖć¼ć ććć³ć”ć³ććåå¾ćć (ć¬ć¬ć·)
- ć¹ććŖć¼ć ćåé²ććć¾ćć
- ć¹ććŖć¼ć ććŖć»ćććć
- ä¾å¤ć«ćæć°ćä»ćć
- ä¾å¤ć®ćæć°ćč§£é¤ćć
- ē£ę»ć¤ćć³ć
- ćć¹ć¦ć®ć¦ć¼ć¶ć¼ćåå¾ćć
- CLI
- é£ęŗć¬ć¤ć
- Exchange 㨠Azure ćµć¼ćć¹ ć¦ć¼ć¶ć¼ćØć®é£ęŗ
- Exchange 㨠Azure ć¢ććŖć±ć¼ć·ć§ć³čŖčؼć®ēµ±å
- Python ć使ēØćć Tableau ć®ćć¼ćæć®ćć§ćć
- Elasticsearch ćØć®é£ęŗ
- ć»ć«ććć¹ććć EWS ćØć®é£ęŗ
- UiPath Automation Framework
- UiPath Marketplace ć¢ćÆćć£ććć£
- UiPath å ¬å¼ć¢ćÆćć£ććć£
- ććć°
- ę©ę¢°ćåčŖćēč§£ććę¹ę³:NLPć«åćč¾¼ćććć®ć¬ć¤ć
- ćć©ć³ć¹ćć©ć¼ćć¼ć«ććććć³ćććć¼ć¹ć®å¦ēæ
- å¹ēēćŖå¤å§åØII:ē„ččøēćØå¾®čŖæę“
- å¹ēēćŖå¤å§åØI:注ęć”ć«ććŗć
- é層ēćŖęåø«ćŖćć¤ć³ćć³ćć¢ććŖć³ć°:ćć¬ć¼ćć³ć°ćć¼ćæćŖćć§ä¾”å¤ćå¾ć
- Communications Mining ć«ćć注éćć¤ć¢ć¹ć®äæ®ę£
- ć¢ćÆćć£ć ć©ć¼ćć³ć°: ććåŖćć ML ć¢ćć«ćēęéć§å®ē¾
- ćććÆćć¹ć¦ę°åć«ććć¾ć-ć”ććŖććÆć使ēØćć¦ć¢ćć«ć®ććć©ć¼ćć³ć¹ćč©ä¾”ćć¾ć
- ć¢ćć«ć®ę¤čؼćéč¦ćŖēē±
- ä¼č©±åćć¼ćæ ć¤ć³ććŖćøć§ć³ć¹ć®ććć® Communications Mining 㨠Google AutoML ć®ęÆč¼

Communications Mining éēŗč ć¬ć¤ć
ć³ć”ć³ć
/api/v1/sources/<project>/<source_name>/sync
åæ č¦ćŖęØ©é:ć ć”ćć»ć¼ćøć®ē·Øéć
č«ę±åÆ¾č±”ć®ęä½
ä½ęćććć³ć”ć³ć 1 ä»¶ć«ć¤ććć¾ć㯠(äøęć® ID ć«åŗć„ćć¦) ę“ę°ćććć³ć”ć³ć 1 ä»¶ć«ć¤ćć1 AI ć¦ććććč«ę±ććć¾ćć
- bash
curl -X POST 'https://<my_api_endpoint>/api/v1/sources/<project>/<source>/sync' \ -H "Authorization: Bearer $REINFER_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "comments": [ { "id": "0123456789abcdef", "messages": [ { "body": { "text": "Alice,\n\nHere are the figures for today.\n\nRegards,\nBob" }, "from": "bob@organisation.org", "sent_at": "2011-12-11T11:05:10.000000+00:00", "subject": { "text": "Today'"'"'s figures" }, "to": [ "alice@company.com" ] } ], "timestamp": "2011-12-11T11:05:10.000000+00:00", "user_properties": { "string:Recipient Domain": "company.com", "string:Sender Domain": "organisation.org" } }, { "id": "abcdef0123456789", "messages": [ { "body": { "text": "Hi Bob,\n\nI think these are the wrong numbers - could you check?\n\nThanks again,\nAlice" }, "from": "alice@company.com", "sent_at": "2011-12-11T11:18:43.000000+00:00", "subject": { "text": "Today'"'"'s figures" }, "to": [ "bob@organisation.org" ] } ], "timestamp": "2011-12-11T11:18:43.000000+00:00", "user_properties": { "string:Recipient Domain": "organisation.org", "string:Sender Domain": "company.com" } } ] }'
curl -X POST 'https://<my_api_endpoint>/api/v1/sources/<project>/<source>/sync' \ -H "Authorization: Bearer $REINFER_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "comments": [ { "id": "0123456789abcdef", "messages": [ { "body": { "text": "Alice,\n\nHere are the figures for today.\n\nRegards,\nBob" }, "from": "bob@organisation.org", "sent_at": "2011-12-11T11:05:10.000000+00:00", "subject": { "text": "Today'"'"'s figures" }, "to": [ "alice@company.com" ] } ], "timestamp": "2011-12-11T11:05:10.000000+00:00", "user_properties": { "string:Recipient Domain": "company.com", "string:Sender Domain": "organisation.org" } }, { "id": "abcdef0123456789", "messages": [ { "body": { "text": "Hi Bob,\n\nI think these are the wrong numbers - could you check?\n\nThanks again,\nAlice" }, "from": "alice@company.com", "sent_at": "2011-12-11T11:18:43.000000+00:00", "subject": { "text": "Today'"'"'s figures" }, "to": [ "bob@organisation.org" ] } ], "timestamp": "2011-12-11T11:18:43.000000+00:00", "user_properties": { "string:Recipient Domain": "organisation.org", "string:Sender Domain": "company.com" } } ] }' - ćć¼ć
const request = require("request"); request.post( { url: "https://<my_api_endpoint>/api/v1/sources/<project>/<source>/sync", headers: { Authorization: "Bearer " + process.env.REINFER_TOKEN, }, json: true, body: { comments: [ { id: "0123456789abcdef", messages: [ { body: { text: "Alice,\n\nHere are the figures for today.\n\nRegards,\nBob", }, from: "bob@organisation.org", sent_at: "2011-12-11T11:05:10.000000+00:00", subject: { text: "Today's figures" }, to: ["alice@company.com"], }, ], timestamp: "2011-12-11T11:05:10.000000+00:00", user_properties: { "string:Recipient Domain": "company.com", "string:Sender Domain": "organisation.org", }, }, { id: "abcdef0123456789", messages: [ { body: { text: "Hi Bob,\n\nI think these are the wrong numbers - could you check?\n\nThanks again,\nAlice", }, from: "alice@company.com", sent_at: "2011-12-11T11:18:43.000000+00:00", subject: { text: "Today's figures" }, to: ["bob@organisation.org"], }, ], timestamp: "2011-12-11T11:18:43.000000+00:00", user_properties: { "string:Recipient Domain": "organisation.org", "string:Sender Domain": "company.com", }, }, ], }, }, function (error, response, json) { // digest response console.log(JSON.stringify(json, null, 2)); } );
const request = require("request"); request.post( { url: "https://<my_api_endpoint>/api/v1/sources/<project>/<source>/sync", headers: { Authorization: "Bearer " + process.env.REINFER_TOKEN, }, json: true, body: { comments: [ { id: "0123456789abcdef", messages: [ { body: { text: "Alice,\n\nHere are the figures for today.\n\nRegards,\nBob", }, from: "bob@organisation.org", sent_at: "2011-12-11T11:05:10.000000+00:00", subject: { text: "Today's figures" }, to: ["alice@company.com"], }, ], timestamp: "2011-12-11T11:05:10.000000+00:00", user_properties: { "string:Recipient Domain": "company.com", "string:Sender Domain": "organisation.org", }, }, { id: "abcdef0123456789", messages: [ { body: { text: "Hi Bob,\n\nI think these are the wrong numbers - could you check?\n\nThanks again,\nAlice", }, from: "alice@company.com", sent_at: "2011-12-11T11:18:43.000000+00:00", subject: { text: "Today's figures" }, to: ["bob@organisation.org"], }, ], timestamp: "2011-12-11T11:18:43.000000+00:00", user_properties: { "string:Recipient Domain": "organisation.org", "string:Sender Domain": "company.com", }, }, ], }, }, function (error, response, json) { // digest response console.log(JSON.stringify(json, null, 2)); } ); - Python
import json import os import requests response = requests.post( "https://<my_api_endpoint>/api/v1/sources/<project>/<source>/sync", headers={"Authorization": "Bearer " + os.environ["REINFER_TOKEN"]}, json={ "comments": [ { "id": "0123456789abcdef", "timestamp": "2011-12-11T11:05:10.000000+00:00", "messages": [ { "from": "bob@organisation.org", "to": ["alice@company.com"], "sent_at": "2011-12-11T11:05:10.000000+00:00", "subject": {"text": "Today's figures"}, "body": { "text": "Alice,\n\nHere are the figures for today.\n\nRegards,\nBob" }, } ], "user_properties": { "string:Sender Domain": "organisation.org", "string:Recipient Domain": "company.com", }, }, { "id": "abcdef0123456789", "timestamp": "2011-12-11T11:18:43.000000+00:00", "messages": [ { "from": "alice@company.com", "to": ["bob@organisation.org"], "sent_at": "2011-12-11T11:18:43.000000+00:00", "subject": {"text": "Today's figures"}, "body": { "text": "Hi Bob,\n\nI think these are the wrong numbers - could you check?\n\nThanks again,\nAlice" }, } ], "user_properties": { "string:Sender Domain": "company.com", "string:Recipient Domain": "organisation.org", }, }, ] }, ) print(json.dumps(response.json(), indent=2, sort_keys=True))
import json import os import requests response = requests.post( "https://<my_api_endpoint>/api/v1/sources/<project>/<source>/sync", headers={"Authorization": "Bearer " + os.environ["REINFER_TOKEN"]}, json={ "comments": [ { "id": "0123456789abcdef", "timestamp": "2011-12-11T11:05:10.000000+00:00", "messages": [ { "from": "bob@organisation.org", "to": ["alice@company.com"], "sent_at": "2011-12-11T11:05:10.000000+00:00", "subject": {"text": "Today's figures"}, "body": { "text": "Alice,\n\nHere are the figures for today.\n\nRegards,\nBob" }, } ], "user_properties": { "string:Sender Domain": "organisation.org", "string:Recipient Domain": "company.com", }, }, { "id": "abcdef0123456789", "timestamp": "2011-12-11T11:18:43.000000+00:00", "messages": [ { "from": "alice@company.com", "to": ["bob@organisation.org"], "sent_at": "2011-12-11T11:18:43.000000+00:00", "subject": {"text": "Today's figures"}, "body": { "text": "Hi Bob,\n\nI think these are the wrong numbers - could you check?\n\nThanks again,\nAlice" }, } ], "user_properties": { "string:Sender Domain": "company.com", "string:Recipient Domain": "organisation.org", }, }, ] }, ) print(json.dumps(response.json(), indent=2, sort_keys=True)) - ć¬ć¹ćć³ć¹
{ "new": 2, "status": "ok", "unchanged": 0, "updated": 0 }
{ "new": 2, "status": "ok", "unchanged": 0, "updated": 0 }
ć³ć”ć³ćć® ID ć«ćććć½ć¼ć¹å ć§ć³ć”ć³ććäøęć«čå„ćć¾ććęå®ććć³ć”ć³ć ID ćć½ć¼ć¹ć«ååØććŖćå “åćÆćę°ććć³ć”ć³ććä½ęććć¾ćć ååØććå “åćÆćę¢åć®ć³ć”ć³ććę“ę°ććć¾ćć
åå | å | åæ é | čŖ¬ę |
---|---|---|---|
comments | array<Cmment> | ā | ć³ć”ć³ćć®åē §ć»ćÆć·ć§ć³ć«čØč¼ććć¦ććå½¢å¼ć®ćę大 16384 ä»¶ć®ć³ć”ć³ćć®ćććć§ćć大ććŖććććÆå°ććŖćććććć (ć³ć”ć³ćåä½ć§) é«éć§ćć |
å²ćå½ć¦ćććäøč¬ćć£ć¼ć«ć
å²ćå½ć¦ćććäøč¬ćć£ć¼ć«ććÆćććć¹ććå¤§å¹ ć«å¤ę“ćććŖćéćäæęććć¾ćć å²ćå½ć¦ćććć©ćć«ćē “ę£ćććććØćÆććć¾ććć
大ććŖč¦ę±
č¦ę±ć大ććå “åććć®ćØć³ććć¤ć³ććÆåæēć«ęéććććå “åćććć¾ćććÆć©ć¤ć¢ć³ćć®ćæć¤ć ć¢ć¦ćå¤ćå¢ććåæ č¦ćććć¾ćć
/api/v1/sources/<project>/<source_name>/sync-raw-emails
åæ č¦ćŖęØ©é:ćć”ćć»ć¼ćøć®ē·Øéć
č«ę±åÆ¾č±”ć®ęä½
ä½ęćććć³ć”ć³ć 1 ä»¶ć«ć¤ććć¾ććÆććć¹ććå¤ę“ćććå “åćÆę“ę°ćććć³ć”ć³ć 1 ä»¶ (ć”ć¼ć«ć®ć”ćć»ć¼ćø ID ć«åŗć„ć) ć«ć¤ćć1 AI ć¦ććććę¶č²»ććć¾ćć
- bash
curl -X POST 'https://<my_api_endpoint>/api/v1/sources/<project>/<source>/sync-raw-emails' \ -H "Authorization: Bearer $REINFER_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "documents": [ { "raw_email": { "body": { "plain": "Hi Bob,\n\nCould you send me today'"'"'s figures?\n\nThanks,\nAlice" }, "headers": { "parsed": { "Date": "Thu, 09 Jan 2020 16:34:45 +0000", "From": "alice@company.com", "Message-ID": "abcdef@company.com", "References": "<01234@company.com> <56789@company.com>", "Subject": "Figures Request", "To": "bob@organisation.org" } } }, "user_properties": { "number:Deal Value": 12000, "string:City": "London" } } ], "include_comments": true, "transform_tag": "name.0.ABCD1234" }'
curl -X POST 'https://<my_api_endpoint>/api/v1/sources/<project>/<source>/sync-raw-emails' \ -H "Authorization: Bearer $REINFER_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "documents": [ { "raw_email": { "body": { "plain": "Hi Bob,\n\nCould you send me today'"'"'s figures?\n\nThanks,\nAlice" }, "headers": { "parsed": { "Date": "Thu, 09 Jan 2020 16:34:45 +0000", "From": "alice@company.com", "Message-ID": "abcdef@company.com", "References": "<01234@company.com> <56789@company.com>", "Subject": "Figures Request", "To": "bob@organisation.org" } } }, "user_properties": { "number:Deal Value": 12000, "string:City": "London" } } ], "include_comments": true, "transform_tag": "name.0.ABCD1234" }' - ćć¼ć
const request = require("request"); request.post( { url: "https://<my_api_endpoint>/api/v1/sources/<project>/<source>/sync-raw-emails", headers: { Authorization: "Bearer " + process.env.REINFER_TOKEN, }, json: true, body: { documents: [ { raw_email: { body: { plain: "Hi Bob,\n\nCould you send me today's figures?\n\nThanks,\nAlice", }, headers: { parsed: { Date: "Thu, 09 Jan 2020 16:34:45 +0000", From: "alice@company.com", "Message-ID": "abcdef@company.com", References: "<01234@company.com> <56789@company.com>", Subject: "Figures Request", To: "bob@organisation.org", }, }, }, user_properties: { "number:Deal Value": 12000, "string:City": "London", }, }, ], include_messages: true, transform_tag: "name.0.ABCD1234", }, }, function (error, response, json) { // digest response console.log(JSON.stringify(json, null, 2)); } );
const request = require("request"); request.post( { url: "https://<my_api_endpoint>/api/v1/sources/<project>/<source>/sync-raw-emails", headers: { Authorization: "Bearer " + process.env.REINFER_TOKEN, }, json: true, body: { documents: [ { raw_email: { body: { plain: "Hi Bob,\n\nCould you send me today's figures?\n\nThanks,\nAlice", }, headers: { parsed: { Date: "Thu, 09 Jan 2020 16:34:45 +0000", From: "alice@company.com", "Message-ID": "abcdef@company.com", References: "<01234@company.com> <56789@company.com>", Subject: "Figures Request", To: "bob@organisation.org", }, }, }, user_properties: { "number:Deal Value": 12000, "string:City": "London", }, }, ], include_messages: true, transform_tag: "name.0.ABCD1234", }, }, function (error, response, json) { // digest response console.log(JSON.stringify(json, null, 2)); } ); - Python
import json import os import requests response = requests.post( "https://<my_api_endpoint>/api/v1/sources/<project>/<source>/sync-raw-emails", headers={"Authorization": "Bearer " + os.environ["REINFER_TOKEN"]}, json={ "transform_tag": "name.0.ABCD1234", "documents": [ { "raw_email": { "headers": { "parsed": { "Message-ID": "abcdef@company.com", "Date": "Thu, 09 Jan 2020 16:34:45 +0000", "Subject": "Figures Request", "From": "alice@company.com", "To": "bob@organisation.org", "References": "<01234@company.com> <56789@company.com>", } }, "body": { "plain": "Hi Bob,\n\nCould you send me today's figures?\n\nThanks,\nAlice" }, }, "user_properties": { "string:City": "London", "number:Deal Value": 12000, }, } ], "include_comments": True, }, ) print(json.dumps(response.json(), indent=2, sort_keys=True))
import json import os import requests response = requests.post( "https://<my_api_endpoint>/api/v1/sources/<project>/<source>/sync-raw-emails", headers={"Authorization": "Bearer " + os.environ["REINFER_TOKEN"]}, json={ "transform_tag": "name.0.ABCD1234", "documents": [ { "raw_email": { "headers": { "parsed": { "Message-ID": "abcdef@company.com", "Date": "Thu, 09 Jan 2020 16:34:45 +0000", "Subject": "Figures Request", "From": "alice@company.com", "To": "bob@organisation.org", "References": "<01234@company.com> <56789@company.com>", } }, "body": { "plain": "Hi Bob,\n\nCould you send me today's figures?\n\nThanks,\nAlice" }, }, "user_properties": { "string:City": "London", "number:Deal Value": 12000, }, } ], "include_comments": True, }, ) print(json.dumps(response.json(), indent=2, sort_keys=True)) - ć¬ć¹ćć³ć¹
{ "comments": [ { "attachments": [], "id": "61626364656640636f6d70616e792e636f6d", "messages": [ { "body": { "text": "Hi Bob,\n\nCould you send me today's figures?" }, "from": "alice@company.com", "sent_at": "2020-01-09T16:34:45Z", "signature": { "text": "Thanks,\nAlice" }, "subject": { "text": "Figures Request" }, "to": ["bob@organisation.org"] } ], "source_id": "c1fb849b855841de", "text_format": "plain", "thread_id": "3c303132333440636f6d70616e792e636f6d3e", "timestamp": "2020-01-09T16:34:45Z", "uid": "c1fb849b855841de.61626364656640636f6d70616e792e636f6d", "user_properties": { "number:Deal Value": 12000, "number:Participant Count": 2, "number:Position in Thread": 3, "number:Recipient Count": 1, "string:City": "London", "string:Has Signature": "Yes", "string:Message ID": "abcdef@company.com", "string:Sender": "alice@company.com", "string:Sender Domain": "company.com", "string:Thread": "<01234@company.com>" } } ], "new": 1, "status": "ok", "unchanged": 0, "updated": 0 }
{ "comments": [ { "attachments": [], "id": "61626364656640636f6d70616e792e636f6d", "messages": [ { "body": { "text": "Hi Bob,\n\nCould you send me today's figures?" }, "from": "alice@company.com", "sent_at": "2020-01-09T16:34:45Z", "signature": { "text": "Thanks,\nAlice" }, "subject": { "text": "Figures Request" }, "to": ["bob@organisation.org"] } ], "source_id": "c1fb849b855841de", "text_format": "plain", "thread_id": "3c303132333440636f6d70616e792e636f6d3e", "timestamp": "2020-01-09T16:34:45Z", "uid": "c1fb849b855841de.61626364656640636f6d70616e792e636f6d", "user_properties": { "number:Deal Value": 12000, "number:Participant Count": 2, "number:Position in Thread": 3, "number:Recipient Count": 1, "string:City": "London", "string:Has Signature": "Yes", "string:Message ID": "abcdef@company.com", "string:Sender": "alice@company.com", "string:Sender Domain": "company.com", "string:Thread": "<01234@company.com>" } } ], "new": 1, "status": "ok", "unchanged": 0, "updated": 0 }
åęŖå å·„ć®ć”ć¼ć«ćÆćCommunications Mining ć®ć³ć”ć³ćć«å¤ęććć¾ććCommunications Mining ćÆćć”ć¼ć«ć®ćMessage-IDććććć¼ć«åŗć„ćć¦ć³ć”ć³ćć® ID ćēęćć¾ćććć®ć³ć”ć³ć ID ćęć¤ć³ć”ć³ććć½ć¼ć¹ć«ååØććŖćå “åćÆćę°ććć³ć”ć³ććä½ęććć¾ććååØććå “åćÆćę¢åć®ć³ć”ć³ććę“ę°ććć¾ćć
include_comments
ć true
ć«čØå®ćććØćēęćććć³ć”ć³ććåæēć«å«ććććØćć§ćć¾ććć³ć”ć³ććÆććć³ć”ć³ććć«čØč¼ććć¦ććå½¢å¼ć§čæććć¾ćć
åå | å | åæ é | čŖ¬ę |
---|---|---|---|
transform_tag | string | ā | ćć¼ćæćéäæ”ććć”ć¼ć«é£ęŗćčå„ćććæć°ććć®ćæć°ćÆćé£ęŗć®čØå®ćć»ććć¢ćććććØćć«åćåć£ć¦ćććÆćć§ćć |
documents | array<Document> | ā | 仄äøć«čØč¼ććć¦ććå½¢å¼ć®ćę大 16384 åć®ććć„ć”ć³ćć®ćććć§ćć 大ććŖććććÆå°ććŖćććććć (ććć„ć”ć³ćåä½ć§) é«éć§ćć |
include_comments | Boolean | Ć | true ć«čØå®ćććØćć”ć¼ć«ććč§£ęćććć³ć”ć³ććåæēć®ę¬ęć§čæććć¾ćć
|
override_user_properties | array<string> | Ć | ć¦ć¼ć¶ć¼åććć®ćŖć¹ćć«å«ć¾ććå “åćdocuments ć«ęå®ććć¦ććć¦ć¼ć¶ć¼ ććććć£ććčŖåēęćććć¦ć¼ć¶ć¼ ććććć£ććåŖå
ććć¾ćććć®ćŖć¹ćć®ć¦ć¼ć¶ć¼ ććććć£åćÆćåć示ććć¬ćć£ććÆć¹ćä»ććć«ęå®ććåæ
č¦ćććć¾ććććØćć°ćstring:My Property ć§ćÆćŖććMy Property ćØćć¾ćć
|
Document
ć®å½¢å¼ćÆę¬”ć®ćØććć§ćć
åå | å | åæ é | čŖ¬ę |
---|---|---|---|
raw_email | RawEmail | ā | ć³ć”ć³ćåē §ć«čØč¼ććć¦ććå½¢å¼ć®é»åć”ć¼ć«ćć¼ćæć |
comment_id | string | Ć | ć³ć”ć³ććäøęć«čå„ćć¾ććć³ć”ć³ć ID ćęå®ććć¦ććŖćå “åćÆćć”ć¼ć«ć®ć”ćć»ć¼ćø ID ććć³ć”ć³ć ID ćēęććć¾ććå½¢å¼ć«ć¤ćć¦ćÆćć³ć”ć³ćć®åē §ć»ćÆć·ć§ć³ćć覧ćć ććć |
user_properties | map<string, string | number> | Ć | ć³ć”ć³ćć«é©ēØćććć¦ć¼ć¶ć¼å®ē¾©ć®ć”ćæćć¼ćæć§ććå½¢å¼ć«ć¤ćć¦ćÆććć³ć”ć³ćć®åē
§ććć覧ćć ććć ęčØļ¼ äøéØć®ć¦ć¼ć¶ć¼ ććććć£ćÆćé»åć”ć¼ć«ć®å
容ć«åŗć„ćć¦ēęććć¾ćć ććććć¢ćććć¼ććććć¦ć¼ć¶ć¼ ććććć£ćØē«¶åććå “åćč¦ę±ćÆ
422 Unprocessable Entity ć§å¤±ęćć¾ćć
|
å²ćå½ć¦ćććäøč¬ćć£ć¼ć«ć
Communications Mining ćÆćęå®ćććå¤ęćæć°ćčę ®ćć¦ćēć®ć”ć¼ć«ę¬ęćØēć®ć”ć¼ć« ćććć¼ć®ćµćć»ććććć³ć”ć³ćć® "ć”ćć»ć¼ćø" ć®å 容ćēęćć¾ćć å²ćå½ć¦ćććäøč¬ćć£ć¼ć«ććÆćććć¹ććå¤§å¹ ć«å¤ę“ćććŖćéćäæęććć¾ćć å²ćå½ć¦ćććć©ćć«ćē “ę£ćććććØćÆććć¾ććć
大ććŖč¦ę±
č¦ę±ć大ććå “åććć®ćØć³ććć¤ć³ććÆåæēć«ęéććććå “åćććć¾ćććÆć©ć¤ć¢ć³ćć®ćæć¤ć ć¢ć¦ćå¤ćå¢ććåæ č¦ćććć¾ćć
/api/v1/sources/<project>/<source_name>/comments?id=<comment_id0>[&id=<comment_id1>...]
åæ č¦ćŖęØ©é:ćć”ćć»ć¼ćøć®ē·Øéć
- bash
curl -X DELETE 'https://<my_api_endpoint>/api/v1/sources/<project>/<source_name>/comments?id=abcdef0123456789' \ -H "Authorization: Bearer $REINFER_TOKEN"
curl -X DELETE 'https://<my_api_endpoint>/api/v1/sources/<project>/<source_name>/comments?id=abcdef0123456789' \ -H "Authorization: Bearer $REINFER_TOKEN" - ćć¼ć
const request = require("request"); request.delete( { url: "https://<my_api_endpoint>/api/v1/sources/<project>/<source_name>/comments?id=abcdef0123456789", headers: { Authorization: "Bearer " + process.env.REINFER_TOKEN, }, }, function (error, response, json) { // digest response console.log(JSON.stringify(json, null, 2)); } );
const request = require("request"); request.delete( { url: "https://<my_api_endpoint>/api/v1/sources/<project>/<source_name>/comments?id=abcdef0123456789", headers: { Authorization: "Bearer " + process.env.REINFER_TOKEN, }, }, function (error, response, json) { // digest response console.log(JSON.stringify(json, null, 2)); } ); - Python
import json import os import requests response = requests.delete( "https://<my_api_endpoint>/api/v1/sources/<project>/<source_name>/comments?id=abcdef0123456789", headers={"Authorization": "Bearer " + os.environ["REINFER_TOKEN"]}, ) print(json.dumps(response.json(), indent=2, sort_keys=True))
import json import os import requests response = requests.delete( "https://<my_api_endpoint>/api/v1/sources/<project>/<source_name>/comments?id=abcdef0123456789", headers={"Authorization": "Bearer " + os.environ["REINFER_TOKEN"]}, ) print(json.dumps(response.json(), indent=2, sort_keys=True)) - ć¬ć¹ćć³ć¹
{ "status": "ok" }
{ "status": "ok" }
åć ć®ć³ć”ć³ććÆćć³ć”ć³ć ć®čæ½å ęć«ęå®ććć ID ć使ēØćć¦ćć½ć¼ć¹ććåé¤ć§ćć¾ćć
ćć®ć³ć”ć³ćć«é¢é£ä»ćććć¦ćććć¹ć¦ć®ćć¼ćæ ćÆå®å Øć«åé¤ććć¾ćć
/api/v1/sources/<project>/<source_name>/comments/<comment_id>
åæ č¦ćŖęØ©é: ć½ć¼ć¹ć蔨示
- bash
curl -X GET 'https://<my_api_endpoint>/api/v1/sources/<project>/<source>/comments/0123456789abcdef' \ -H "Authorization: Bearer $REINFER_TOKEN"
curl -X GET 'https://<my_api_endpoint>/api/v1/sources/<project>/<source>/comments/0123456789abcdef' \ -H "Authorization: Bearer $REINFER_TOKEN" - ćć¼ć
const request = require("request"); request.get( { url: "https://<my_api_endpoint>/api/v1/sources/<project>/<source>/comments/0123456789abcdef", headers: { Authorization: "Bearer " + process.env.REINFER_TOKEN, }, }, function (error, response, json) { // digest response console.log(JSON.stringify(json, null, 2)); } );
const request = require("request"); request.get( { url: "https://<my_api_endpoint>/api/v1/sources/<project>/<source>/comments/0123456789abcdef", headers: { Authorization: "Bearer " + process.env.REINFER_TOKEN, }, }, function (error, response, json) { // digest response console.log(JSON.stringify(json, null, 2)); } ); - Python
import json import os import requests response = requests.get( "https://<my_api_endpoint>/api/v1/sources/<project>/<source>/comments/0123456789abcdef", headers={"Authorization": "Bearer " + os.environ["REINFER_TOKEN"]}, ) print(json.dumps(response.json(), indent=2, sort_keys=True))
import json import os import requests response = requests.get( "https://<my_api_endpoint>/api/v1/sources/<project>/<source>/comments/0123456789abcdef", headers={"Authorization": "Bearer " + os.environ["REINFER_TOKEN"]}, ) print(json.dumps(response.json(), indent=2, sort_keys=True)) - ć¬ć¹ćć³ć¹
{ "comment": { "context": "1596721237668", "created_at": "2020-08-06T13:20:28.531000Z", "id": "0123456789abcdef", "last_modified": "2020-08-06T13:40:37.668000Z", "messages": [ { "body": { "text": "Alice,\n\nHere are the figures for today.\n\nRegards,\nBob" }, "from": "bob@organisation.org", "sent_at": "2011-12-11T11:05:10Z", "subject": { "text": "Today's figures" }, "to": ["alice@company.com"] } ], "source_id": "47194279497e141e", "text_format": "plain", "timestamp": "2011-12-11T11:05:10Z", "uid": "47194279497e141e.0123456789abcdef", "user_properties": { "string:Recipient Domain": "company.com", "string:Sender Domain": "organisation.org" } }, "status": "ok" }
{ "comment": { "context": "1596721237668", "created_at": "2020-08-06T13:20:28.531000Z", "id": "0123456789abcdef", "last_modified": "2020-08-06T13:40:37.668000Z", "messages": [ { "body": { "text": "Alice,\n\nHere are the figures for today.\n\nRegards,\nBob" }, "from": "bob@organisation.org", "sent_at": "2011-12-11T11:05:10Z", "subject": { "text": "Today's figures" }, "to": ["alice@company.com"] } ], "source_id": "47194279497e141e", "text_format": "plain", "timestamp": "2011-12-11T11:05:10Z", "uid": "47194279497e141e.0123456789abcdef", "user_properties": { "string:Recipient Domain": "company.com", "string:Sender Domain": "organisation.org" } }, "status": "ok" }
ć³ć”ć³ććÆććć³ć”ć³ććć«čØč¼ććć¦ććå½¢å¼ć§čæććć¾ćć
/api/v1/sources/<project>/<source_name>/threads?id=<thread_id0>[&id=<thread_id1>...]
åæ č¦ćŖęØ©é: ć½ć¼ć¹ć蔨示
- bash
curl -X GET 'https://<my_api_endpoint>/api/v1/sources/<project>/<source>/threads?id=185521538102&id=81745162' \ -H "Authorization: Bearer $REINFER_TOKEN"
curl -X GET 'https://<my_api_endpoint>/api/v1/sources/<project>/<source>/threads?id=185521538102&id=81745162' \ -H "Authorization: Bearer $REINFER_TOKEN" - ćć¼ć
const request = require("request"); request.get( { url: "https://<my_api_endpoint>/api/v1/sources/<project>/<source>/threads?id=185521538102&id=81745162", headers: { Authorization: "Bearer " + process.env.REINFER_TOKEN, }, }, function (error, response, json) { // digest response console.log(JSON.stringify(json, null, 2)); } );
const request = require("request"); request.get( { url: "https://<my_api_endpoint>/api/v1/sources/<project>/<source>/threads?id=185521538102&id=81745162", headers: { Authorization: "Bearer " + process.env.REINFER_TOKEN, }, }, function (error, response, json) { // digest response console.log(JSON.stringify(json, null, 2)); } ); - Python
import json import os import requests response = requests.get( "https://<my_api_endpoint>/api/v1/sources/<project>/<source>/threads?id=185521538102&id=81745162", headers={"Authorization": "Bearer " + os.environ["REINFER_TOKEN"]}, ) print(json.dumps(response.json(), indent=2, sort_keys=True))
import json import os import requests response = requests.get( "https://<my_api_endpoint>/api/v1/sources/<project>/<source>/threads?id=185521538102&id=81745162", headers={"Authorization": "Bearer " + os.environ["REINFER_TOKEN"]}, ) print(json.dumps(response.json(), indent=2, sort_keys=True)) - ć¬ć¹ćć³ć¹
{ "status": "ok", "threads": [ { "messages": ["4321dcba.1234", "4321dcba.2345", "4321dcba.3456"], "thread_id": "185521538102" }, { "messages": [], "thread_id": "81745162" } ] }
{ "status": "ok", "threads": [ { "messages": ["4321dcba.1234", "4321dcba.2345", "4321dcba.3456"], "thread_id": "185521538102" }, { "messages": [], "thread_id": "81745162" } ] }
source_id.comment_id
ć®å½¢å¼) ćå«ć¾ćć¾ćć ååØććŖćć¹ć¬ćć ID ćęå®ćć¦ććØć©ć¼ćÆēŗēććŖćććØć«ę³Øęćć¦ćć ććć代ććć«ćåæēå
ć®åƾåæććć³ć”ć³ćć®ćŖć¹ććÆē©ŗć«ćŖćć¾ćć