0

I'm trying to send leads and inquiry to followupboss crm, this is the php code i used for connecting to the followupboos rest API https://github.com/FollowUpBoss/fub-api-examples

everything is working correctly, Now I have to add user addresses json field to the code. but it is not working,

this is my code:

"person" => array( 
    "firstName" => "john" ,
    "lastName" => "doe" ,
    "emails" => array(array("value" => "[email protected]")),
    "phones" => array(array("value" => "09367099962")),
    "addresses[0].street" => "322 S Broadway"
) 

on send it is null ["addresses"]=> array(0)

anybody can help on this?

1 Answer 1

1

You need to change the addresses into an array of address objects, so it would look like this:

"person" => array( 
   "firstName" => "john" ,
   "lastName" => "doe" ,
   "emails" => array(array("value" => "[email protected]")),
   "phones" => array(array("value" => "09367099962")),
   "addresses" => array(
        // Address 1
        array(
             "street" => "322 S Broadway"
        )
        // If there are more than 1 address, add here
        ,array(
             "street" => "323 S Broadway" 
        )
    )    
) 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.