Skip to content

How to call API and consume the output using exec #11527

Answered by jszwedko
satscreate asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @satscreate ,

If you want to call it on an interval, you should use mode.scheduled with scheduled.exec_interval_secs like:

sources:
  my_source_id:
    type: exec
    command: ["curl","-k","https://gorest.co.in/public/v2/users"]
    mode: scheduled
    scheduled:
      exec_interval_secs: 600 # five minutes

Otherwise, what you have seems reasonable to me.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@satscreate
Comment options

@jszwedko
Comment options

@satscreate
Comment options

@satscreate
Comment options

@jszwedko
Comment options

Answer selected by satscreate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants