Can not use {{}} with phone - vuejs2

var walink = "https://web.whatsapp.com/send",
phone = "https://4934-175-158-53-206.ap.ngrok.io/api/user/contact",
walink2 = "Halo saya ingin melakukan pemesanan paket wisata",
text_yes = "Terkirim.",
text_no = "Isi semua Formulir lalu klik Send.";
how to call contacts phone in beck end??

Related

Aiogram fails to create sticker pack

I ran into a problem with stickers, the code is below
async def sticker_set(msg:types.Message):
await bot.create_new_sticker_set(
user_id=msg.from_user.id,
name = "what_den_things",
title = "What Denis thinks",
png_sticker = "boring.png",
emojis = "👍"
)

Creating a multiple URL vCard using vObject

How can I get multiple URL in one VCard.
I am using VObject library (https://pypi.org/project/vobject/)
I want to create a VCard with details like:
Fname
Lname
Company name
Phone number
address
website url
facebook url
insta gram url
Tik tok url
twitter url
I tried the following code
vCard.add('URL')
vCard.url.value = 'https://www.example.com'
vCard.url.type_param = "Website:"
vCard.add('URL')
vCard.url.value = 'https://www.facebook.com'
vCard.url.type_param = "Facebook:"
In the output I was only able to get one of the link:
BEGIN:VCARD
VERSION:3.0
EMAIL;TYPE=INTERNET:justin.white#gmail.com
FN:Justin
N:White;Justin;;;
ORG:Tesla
TEL;TYPE=HOME:+16503977339
URL;TYPE=Facebook:https://www.facebook.com
URL:
END:VCARD
You can do something like this
v = vobject.vCard()
o = v.add('url')
o.type_param = "WEBSITE"
o.value = "website_link"
o = v.add('url')
o.type_param = "TWITTER"
o.value = "twitter_link"

sending email to multiple accounts using php ews

The below code is used for sending email using jamesiarmes/php-ews
in my application
$request = new \jamesiarmes\PhpEws\Request\CreateItemType();
$request->MessageDisposition = "SendOnly";
$request->SavedItemFolderId->DistinguishedFolderId->Id = "sentitems";
$request->Items->Message->ItemClass = "IPM.Note";
$request->Items->Message->Subject = "exchange new mail";
$request->Items->Message->Body->BodyType = 'HTML';
$request->Items->Message->Body->_ = "This is a test mail as a part of exchange settings set up ";
$request->Items->Message->ToRecipients->Mailbox->EmailAddress = "rejith.rj#pitsolutions.com";
$response = $this->app['ews']->CreateItem($request);
But the problem is I can add only one email address as recipient, how can I add multiple email addresses in ToRecipients?
I checked out the php-ews documentation. You can create an array with multiple recipients this way:
$toAddresses = array();
$toAddresses[0] = new EWSType_EmailAddressType();
$toAddresses[0]->EmailAddress = 'john.harris#domain.com';
$toAddresses[0]->Name = 'John Harris';
$toAddresses[1] = new EWSType_EmailAddressType();
$toAddresses[1]->EmailAddress = 'sara.smith#domain.com';
$toAddresses[1]->Name = 'Sara Smith';
And then add it to your object like this:
$request->Items->Message->ToRecipients = $toAddresses;
Try this and feedback me please.
Seems to me that your problem has not been solve yet?
Following works for me:
$toAddresses = array();
$toAddresses[0]="test#test.com";
$toAddresses[1]="test2#test.com";
$api = MailAPI::withUsernameAndPassword("server", "username", "password");
$message = new Type\MessageType();
$message->setBody('Some Text');
$message->setSubject('Test Subject');
$message->setToRecipients($toAddresses);

How to search for Creative Commons in the Youtube API [C#, .Net]

I am using the Youtube APi 3.0 for .Net and this [code sample][1]. Everything works perfect but I do not know how to search fot CC.
var searchListRequest = youtubeService.Search.List("snippet");
searchListRequest.Q = "Google";
searchListRequest.VideoLicense = SearchResource.ListRequest.VideoLicenseEnum.CreativeCommon;
searchListRequest.MaxResults = 50;
https://developers.google.com/youtube/v3/code_samples/dotnet#search_by_keyword
The answer was so simple...
var searchListRequest = youtubeService.Search.List("snippet");
searchListRequest.Type = "video";
searchListRequest.Q = searchword; // Replace with your search term.
searchListRequest.VideoLicense = SearchResource.ListRequest.VideoLicenseEnum.CreativeCommon;
searchListRequest.MaxResults = 50;

How i implement Automated Recurring Billing (ARB) in MVC 4

I want to implement the Automated Recurring Billing (ARB) system with my registration module in mvc4 ,
and how i check the subscription is start
SubscriptionGateway target = new SubscriptionGateway(ApiLogin, TransactionKey);
ISubscriptionRequest subscription = SubscriptionRequest.CreateMonthly("abc#xyz.com",
"ARB Subscrition Test ", (decimal)6.50,6);
subscription.CardNumber = "4111111111111111";
subscription.CardExpirationMonth = 12;
subscription.CardExpirationYear = 20;
Address billToAddress = new Address();
billToAddress.First = "gh";
billToAddress.Last = "treggjhw";
billToAddress.Company = "tre";
billToAddress.City = "twe";
billToAddress.Zip = "160055";
subscription.BillingAddress = billToAddress;
ISubscriptionRequest actual = target.CreateSubscription(subscription);
var sid = actual.SubscriptionID;
I have get the SubscriptionID in sid, but please tell how i confirm it and update it