Trying to get the TimeCamp api working

Get time entries | TimeCamp API

This is the specific api I am trying to get working. The issue I am having, is that I need to pass two ‘date’ strings as part of the URL it seems. But when I try it, I get an unexpected token error, so I assume that the syntax I’m using is incorrect for pipedream.

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    timecamp: {
      type: "app",
      app: "timecamp",
  async run({steps, $}) {
    return await axios($, {
      url: `', 
      headers: {
        "Authorization": `${this.timecamp.$auth.api_token}`,

Any help or guidance would be appreciated! In fact, I want the url link parameters to not be a fixed date like in the example, but to always be yesterdays date. I have a step set up using moment() to get the date and subtract 1, but I can’t test if its working because it doesn’t seem to output anything (though pipedream is saying it’s successful without any errors). I’m ignoring it for now until I can actually get the timecamp api working for time entries though.


ok so one thing I learned was this - Migrate from v1 (

And that… basically 99% of all guides and previous help threads for pipedream are now completely invalid, cos all the syntax has changed. Which is… fine, except that a lot of it is still hosted by pipedream and there’s nothing that points it as being invalid (I only stumbled over this ‘migrate’ page by random accident while googling how to use $checkpoint, which it turns out no longer exists lol)

EDIT: Set up my code in the old V1 editor, and it worked immediately. I think the issue is that the way to grab ‘moment()’ data is now different, and so it just wasn’t working because I used help threads that referenced the old way of doing it. Will start a new thread asking how to do that specifically. This thread can die.