I'm trying to intergrate
ToDoist with VC, I've created an action to get my project names and add them to a map table. but I'm having problems with the scrape.post actions, I'm getting this error
could no create ssl/tsl secure channel when I try to run the actions.
Todoist APII can send you my current APIkey with a PM so you don't have to create an account.
or if you create an account, you can get the API key from
Todoist.com > settings > integrations > Api token (bottom of the page).
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.3.0.3-->
<commandGroup open="True" name="ToDoist" enabled="True" prefix="" priority="0" requiredProcess="" description="">
<command id="801" name="ToDoist - Get project names" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>Scrape.Get</cmdType>
<params>
<param>https://api.todoist.com/rest/v2/projects</param>
<param />
<param />
<param />
<param />
<param>Authorization: Bearer {M:apiKeys.ToDoist}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<if ifBlockDisabled="False" ifNot="False">
<ifType>LastActionSuccess</ifType>
<ifParams>&&</ifParams>
<then>
<action>
<cmdType>Results.RegExSingle</cmdType>
<params>
<param>"id":\s"(.\d+)".*?"name":\s"(.*?)",</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Map.Set</cmdType>
<params>
<param>ToDoist</param>
<param>{Match.{i}.2}</param>
<param>{Match.{i}.1}</param>
</params>
<cmdRepeat>{#M}</cmdRepeat>
</action>
</then>
<else />
</if>
</command>
<command id="802" name="ToDoist - Add project" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>Scrape.Post</cmdType>
<params>
<param>https://api.todoist.com/rest/v2/projects</param>
<param>{"name": "ShoppingList"}</param>
<param />
<param />
<param>application/json</param>
<param>X-Request-Id: $(uuidgen)</param>
<param>Authorization: Bearer {M:apiKeys.ToDoist}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</command>
<command id="897" name="ToDoist - Add Task" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>Scrape.Post</cmdType>
<params>
<param>https://api.todoist.com/rest/v2/tasks</param>
<param>'{"content": "Cover pool", "project_id": "{M:ToDoist.Pool}"}'</param>
<param />
<param />
<param>"Content-Type: application/json"</param>
<param>X-Request-Id: $(uuidgen)</param>
<param>Authorization: Bearer {M:apiKeys.ToDoist}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</command>
</commandGroup>
hopefully it's something I'm doing wrong this could be used to replace ourgroceries and add a way to integrate mobile reminders with VC
thanks for any help