I have been working on a shell script for synchronizing my google contacts into Invoice Ninja (v4.4.4 | White label) and when I attempt to create the new contact with the API as documented the account is created but no data is pushed into the new record. So basically I get an empty record, any help on what I am doing wrong would be greatly appreciated.
I stared out the personal data but I confirmed that the data is correct with no additional spaces or special characters in it.
So that was an interesting idea and I modified the code to do it this way; again I get a null entry for the name. It’s a little hard getting the ’ and " quotes correct on the curl call from a shell script but from other posts online I feel confident I have this working as needed.
Wouldn’t not having the token properly stop the creation of an account in total which is not what’s happening here; we are getting an account created but with no data. I am pretty sure this is just because I use echo to output what the command is to screen which removes the " from the statement. The actual curl command is correct.
Ok, I literally copied the output command as provided in the top and it’s works directly from the command line. Well that tells me two things.
The API is working correctly
The command sent from the shell script has some issue with the " or ’ being removed from the bash command
Well I’ll keep testing till I figure this out but thank you for your help it has gotten me closer than I was. Knowing what the problem isn’t is just as valuable as knowing what the problem is.