How to add Custom Field using custom field id using API in php

Hello Team,

I want to add Custom Field using Custom field id

We are using below code when custom field name:

$contact = new Infusionsoft_Contact(’$id’);
$contact->FirstName = ‘John Boy’;
$contact->LastName = ‘Walton’;
$contact->_Message = ‘Walton’;
$contact->save();

Please Give me suggestion,

Thanks

Why are you using an underscore before contact in your object instantiation? What api are you using? Normally you would $contact->load($id) and they would not have any quotes around it (although I suppose you could?)… How are you authenticating?

Hello,

We are using PHP Infusionsoft SDK( https://github.com/novaksolutions/infusionsoft-php-sdk/wiki/Examples#add-a-value-to-a-customfield-dropdown)

Thanks,

Ok, so how are you authenticating?