What is the format of tokens and leads(input json format) used in request campaign rest api? I am getting error code 609 with message Invalid value specified for attribute 'null' . | Community
Skip to main content
May 15, 2016
Question

What is the format of tokens and leads(input json format) used in request campaign rest api? I am getting error code 609 with message Invalid value specified for attribute 'null' .

  • May 15, 2016
  • 1 reply
  • 4345 views

What is the format of tokens and leads(input json format) used in request campaign rest api? I am getting error code 609 with message Invalid value specified for attribute 'null'.

Please provide some example for the integration purpose.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Grégoire_Miche2
Level 10
May 15, 2016

Hi Jatin,

Paste your code, it will be easier to help you.

-Greg

May 15, 2016

Hi Greg,

It is the same sample java code as given in request campaign rest api page.Here is the snippet for the input format.

public static void main(String[] args){

  RequestCampaign requestCampaign = new RequestCampaign();

  requestCampaign.id = 1079;

  requestCampaign.leadIds = new int[]{40};

  JsonObject myToken = new JsonObject()

  .add("name", "{{my.number}}")

  .add("value", "123456");

  requestCampaign.tokens = new JsonObject[]{myToken};

  System.out.println(requestCampaign.buildRequest());

  String result = requestCampaign.postData();

  System.out.println(result);

  }

The input json is printed in this format - {"input":{"leads":[40],"tokens":[{"name":"{{my.number}}","value":"123456"}]}}

Please reply. your help will be highly appreciated.

-Jatin

SanfordWhiteman
Level 10
May 15, 2016

The "leads" prop is an array of object { id:<int> id }. You are passing an array of integers.