APIs & Integrations

TDwebdev
Contributor | Diamond Partner
Contributor | Diamond Partner

JSON file import in hubdb with cronjob

Hello,

 

Is it possible to import a JSON file in hubdb with a cronjob via hubspot (Without a other server)?

I have a api that is tested in Postman and i want the JSON file from the api import via javascript in hubdb with a cronjob that update the hubdb (other suggestions are welcome).

 

Example js:

 

$document ).ready(function() {
  var settings = {
  "url": "JSON-URL",
  "method": "POST",
  "dataType": "json",
  "timeout": 0,
  "headers": {
    "Cookie": "HttpOnly"
  },
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
 

Regards,

TDwebdev



Vet Digital

Did my post solve your question? Help the community by marking it as a solution
0 Upvotes
2 Replies 2
dennisedson
HubSpot Product Team
HubSpot Product Team

JSON file import in hubdb with cronjob

Hey @TDwebdev 

Would you be able to talk more about your goal?  I am genuinely curious.

@piersg , @Kevin-C feel like this is a conversation you would be interested in 👀

0 Upvotes
TDwebdev
Contributor | Diamond Partner
Contributor | Diamond Partner

JSON file import in hubdb with cronjob

Hey @dennisedson,

 

Thank your for your reaction!

We use a API that give us a JSON file. What we want that JSON file import autmatic with a cronjob in hubdb. 

Is there a possibility to only perform this import with a cronjob via hubspot (so no other server for example: PHP etc.)?

Is this possible and do you have a tip?

 

Regards,

TDwebdev

 



Vet Digital

Did my post solve your question? Help the community by marking it as a solution
0 Upvotes