Author Topic: ToDoist integration, could no create ssl/tsl secure channel  (Read 2381 times)

0 Members and 1 Guest are viewing this topic.

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 497
  • Karma: 43
    • View Profile
ToDoist integration, could no create ssl/tsl secure channel
« on: October 07, 2022, 03:24:02 PM »
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 API

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 > 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
« Last Edit: October 10, 2022, 03:59:32 PM by PegLegTV »

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 497
  • Karma: 43
    • View Profile
Re: ToDoist integration, could no create ssl/tsl secure channel
« Reply #1 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
« Last Edit: October 12, 2022, 02:04:07 AM by PegLegTV »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: ToDoist integration, could no create ssl/tsl secure channel
« Reply #2 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?

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 497
  • Karma: 43
    • View Profile
Re: ToDoist integration, could no create ssl/tsl secure channel
« Reply #3 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.