How to setup SMS delivery for Zoho Writer Merge+Sign API - zoho

I'm using Zoho writer merge and sign API to send the document for signature,
Everything works fine except that I cannot find in the documentation how to enable EMAIL + SMS delivery nor the format for providing recipient phone and country code and the document is only sent via EMAIL.
I tried formatting the signer like below, but it doesn't even add the phone and country code to the contact created inside Zoho Sign.
[
"recipient_1" => "test#email.com"
"recipient_name" => "Test Name"
"action_type" => "sign"
"recipient_phonenumber" => "123456789"
"recipient_countrycode" => "+61"
"language" => "en"
]
Appreciate if someone can advise how to achieve this.
Thanks

Related

getOfferById method provided by an API does not work (invalid Id or Error cannot find parameter) [Laravel]

I am a junior developer working on this project.
I'm using an API who provide offers and I'm trying to display them.
They provide several methods as "getOffers" "search" "getOfferById".
I managed to display all the offers with the getOffers, but I can't use the getOfferById. I might be using it the wrong way.
They also provide us with a sandbox to play with the methods so when I put the id on the sandbox it works fine. Here is an exemple from the doc:
$offer = $soapClient->getOfferById($offerId, array('key' => 'length.unit', 'value' => 'm'));
and here is what I've tried so far :
$offerId = 2020012100009;
$offer = $soapClient->getOfferById($offerId, array('key' => 'length.unit', 'value' => 'm'));
dd($offer->length);
I get "Error can not find parameter" for this.
$offer = $soapClient->getOfferById($offerId);
and I get "Invalid Id" for this.
There is no such id in the database, are you sure that the id you providing is valid?
I resolved my problem. I had to apply it like that.
$offer = $soapClient->getOfferById(array(
'id' => $offerId
));

Can I add Card Details without charging the customer with Stripe?

I need my customers to add their credit card info, but I don't want to charge them right away. Is there any way, I can add their details to charge later when using Stripes checkout solution and just store their card token first?
I am using Laravel Cashier on the backend.
You should first create a Stripe card token. You have two options to do so:
On the client side (recommended) using Stripe.js & Elements, you first create a card Element (The Elements object) and then you create a Stripe card Token (stripe.createToken())
On the server side (Create a card token). The easiest way is to install the official Stripe PHP library with composer require stripe/stripe-php and then use the following piece of code:
\Stripe\Stripe::setApiKey("{your_stripe_api_key}");
\Stripe\Token::create([
"card" => [
"number" => "{card_number}",
"exp_month" => {card_expiration_month},
"exp_year" => {card_expiration_year},
"cvc" => "{card_security_code}"
]
]);
Once you have that token you can use Laravel Cashier to store the Stripe card token in database and update the card information in Stripe with the following methods:
$user->updateCard($token);
$user->updateCardFromStripe();
More information on those methods in the Updating Credit Cards section of the Laravel Cashier documentation.
If, like me, you're looking for getting the token :
\Stripe\Stripe::setApiKey("{your_stripe_api_key}");
$token = \Stripe\Token::create([
"card" => [
"number" => "{card_number}",
"exp_month" => {card_expiration_month},
"exp_year" => {card_expiration_year},
"cvc" => "{card_security_code}"
]
]);
$user->updateCard($token->id);
$user->updateCardFromStripe();
Thanks #louisfischer

Google calendar api not showing the organizer name and sending notification emails - laravel

I'm using a laravel package for the google calendar API integration. In that, I am able to create events with just attendees only. I've tried creating organizer but it's not coming up. The following is the code I've used. The organizer name here defaults to the email from which the API credentials are created also the email notifications are not coming.
The package I'm using is spatie/laravel-google-calendar
Can anyone tell me what I'm doing wrong here?
Event::create([
'name' => 'Latest Event dsfdsfsdfsdf',
'location' => '800 Howard St., San Francisco, CA 94103',
'description' => 'A chance to hear more about Google\'s developer products.',
'startDateTime' => Carbon\Carbon::now(),
'endDateTime' => Carbon\Carbon::now()->addHour(),
'sendNotifications' => true,
'sendUpdates' => 'all',
'organizer' => array('email' => 'test#gmail.com','displayName' => 'Darshan')
'attendees' => array(
array('email' => 'test#gmail.com','displayName' => 'Darshan', 'organizer' => true),
array('email' => 'darshan#test.com','displayName' => 'Ryan')
)
]);
The package doesn't support adding an organizer yet. You could either add the functionality to the package or you could use the Google ApiClient directly. The Google Sdk does have a setOrganizer method which should work similar to the setAttendees method that is called in the Event class.
Apparently the word "organizer" is bit of a misnomer and it actually refers to the calendar that the event is created on. Have a look at this question and it's comments.

Send email via the Mandrill API containing multiple BCC addresses

Is their any way to send email via the Mandrill API which contain multiple BCC address?
Mandrill API documentation displays only a single bcc_address in their API. So is it not possible send email which contain multiple BCC addresses?
Yup totally doable! According to the Mandrill API send documentation, you can specify multiple addresses in the to field, and mark them as type bcc.
Here's an example:
{
"to":[
{
"email":"recipient.email#example.com",
"name":"Recipient Name",
"type":"to"
},
{
"email":"bcc.recipient.email.1#example.com",
"name":"BCC Recipient Name 1",
"type":"bcc"
},
{
"email":"bcc.recipient.email.2#example.com",
"name":"BCC Recipient Name 2",
"type":"bcc"
}
]
}
Hope this helps.
Also make sure you're passing the value "preserve_recipients": true under the message section.
If you're trying to send an email to multiple users but don't want them to be able to see who you sent the email to, and not being able to "reply all", you can set preserveRecipients to false.
Source: http://help.mandrill.com/entries/21688056-Using-SMTP-Headers-to-customize-your-messages#preserve-recipient-headers-for-group-emails

How to store birthday through mailchimp API?

I'm using mailchimp 1.3 in a Codeigniter application through this library.
I have this piece of code:
$birthday = date('m/d', strtotime('1984-04-29');
echo $birthday;
$merge_vars = array(
'FNAME'=> $profile_info['name'],
'LNAME'=> $profile_info['lastname'],
'birthday' => $birthday,
'GROUPINGS' => array(array('name' => $this->group_name, 'groups' => $this->group1))
);
$this->mail_chimp->listSubscribe($this->list_id, $email, $merge_vars);
The subscription works and in the administration panel of mailchimp I can see the user name and lastname, but no birthday.
In the api documentation it says it should be formatted as MM/DD and echoing the
birthday I verified it was right.
Any suggestions?
Ok, I solved.
I had to add a field for the birthday in the list settings as explained here:
http://kb.mailchimp.com/article/how-do-i-create-and-send-automatic-birthday-campaigns

Resources