VoxCommando

Help and Support (Using VoxCommando) => VoxCommando Basics and Core Features => Topic started by: PegLegTV on October 07, 2022, 03:24:02 PM

Title: ToDoist integration, could no create ssl/tsl secure channel
Post by: PegLegTV on October 07, 2022, 03:24:02 PM
I'm trying to intergrate ToDoist (https://play.google.com/store/search?q=todoist&c=apps) 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 API (https://developer.todoist.com/rest/v2?shell#overview)

I 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 (https://todoist.com/) > settings > integrations > Api token (bottom of the page).

Code: [Select]
<?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>&amp;&amp;</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
Title: Re: ToDoist integration, could no create ssl/tsl secure channel
Post by: PegLegTV on October 12, 2022, 01:16:17 AM
Did some more testing and decided to test it on my HTPC, and low and be hold it works on that pc.


So it looks like the error I'm Getting is local to my Laptop so I'll have to doo some more digging on that.

UPDATE: I was able to resolve the could no create ssl/tsl secure channel error,  :yay
Title: Re: ToDoist integration, could no create ssl/tsl secure channel
Post by: jitterjames on October 17, 2022, 10:49:54 AM
Sorry.  I'm in the middle of moving to a new house in a new province and have been completely focused on that.  Did not notice your post.

Is everything sorted out now?
Title: Re: ToDoist integration, could no create ssl/tsl secure channel
Post by: PegLegTV on October 17, 2022, 04:45:08 PM
No Problem, I hope your move is going well.


looks like I had some issues with certifying SSL and TSL connections while using all scrape actions. took a few changes in my registry to get it sorted out. but had nothing to do with VC, seems like an issues with a windows update pushed a little while back, I just never noticed as I don't use VC on my laptop, I just use it to build commands.

Thanks for checking though.