To call a person you need contact details of a person so we will create a contact first.
Contact Amalan = new Contact(); Amalan.PhoneNumber = "+940711111111";
Now create a Timeline card and add call function on the menu item of the card. When create the timeline card add the contact we created as the Creator
TimelineItem contactNumber = new TimelineItem() { Text = "Call Amalan", BundleId = "8081", Creator = Amalan, MenuItems = new List<MenuItem>() { new MenuItem() {Action = "VOICE_CALL"}, new MenuItem() {Action = "DELETE"}}, Notification = new NotificationConfig() { Level = "DEFAULT" }, };
Now we will insert the card that we created
controller.Service.Timeline.Insert(contactNumber).Fetch();
That’s it now you can make the call using the timeline card. Don’t forget to pair your phone with the GLASS