Find Jobs
Hire Freelancers

gmail PHP api - sample code to setvacation in code igniter

$10-30 USD

Terminado
Publicado hace más de 5 años

$10-30 USD

Pagado a la entrega
I originally used [login to view URL] and added to codeigniter via composer. You can see the getClient function from there. I have the following sample code I made which retrieves Gmail vacation response. As you can see, I update an element of the object to change the subject and attempt to send it back to gmail. It throws an error. What I need is an example of how to set the subject, message, start and end date of the vacation autoresponder. Below is my broken attempt public function setVacation($userToken) { // Get the API client and construct the service object. $client = $this->getClient($userToken); $service = new Google_Service_Gmail($client); // get the vacation settings $user = 'me'; $results = $service->users_settings->getVacation($user); print_r($results); // works to here // ============ // change the subject of the out of office as a test $results->responseSubject = 'Out of Office.'; $results2 = $service->users_settings->updateVacation($user,$vacation); print_r($results2); } This throws the error. A PHP Error was encountered Severity: 4096 Message: Argument 2 passed to Google_Service_Gmail_Resource_UsersSettings::updateVacation() must be an instance of Google_Service_Gmail_VacationSettings, null given, called in .....
ID del proyecto: 18008157

Información sobre el proyecto

11 propuestas
Proyecto remoto
Activo hace 5 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
"I CAN DO THIS EASILY WITHIN 3 HOURS" I am Full Stack Developer and Expert Designer, having expertise in web development, web UI/UX, Mobile App Development and Designing. Wordpress, Joomla, Magento including payment gateways are my common weapons to work on web. Skill I Have: WEB -> HTML, CSS, PHP, PDO, Bootstrap, Javascript, jQuery, MySQL, MySQLi, NoSQL, JSON, REStFul API, SEO Optimization, GOogle Web Master Tool, [login to view URL], HTACCESS Wordpress, Joomla, OpenCart, ZenCart, Web Hosting, Apache, Nginx, SMTP, XMPP, Cloud Hosting, Mail Server, web Server, Database Managment, CodeIgniter, CakePHP, Laravel etc MOBILE -> Android Studio, Java, C#, C++, Visual Studio, Xamarin, Swift, Firebase, Geolocation, Geocoding, Admob, Startapp, Paypal, Stripe, [login to view URL], PayTM ====================== Relevant Skills: Codeignitor, Google APIs, PHP, SQL, JS
$30 USD en 0 día
4,9 (31 comentarios)
4,7
4,7
11 freelancers están ofertando un promedio de $36 USD por este trabajo
Avatar del usuario
Hello, Hope you will be doing well!! I have read your description and I understand your requirement and I can handle your project. Please discuss with me for more clarification. Thanks
$45 USD en 1 día
4,7 (88 comentarios)
6,2
6,2
Avatar del usuario
Hello hiring member i hope you are doing well i am bhavika i have 2.5+years experience in php , laravel , ajax,jquery , javascript , ajax,jquery html,css , bootstrap so i can do it so please give me chance to serve you thanks in advance :)
$30 USD en 1 día
5,0 (86 comentarios)
6,0
6,0
Avatar del usuario
Hello Sir, I've reviewed your requirement and I'm ready to work with you.I have almost 11+ years of experience in web development. I will provide quality work as well full support for any query. Kindly contact me here.. Thank you for your consideration. Sincerely, Ajay Vaghela
$50 USD en 0 día
4,9 (156 comentarios)
6,3
6,3
Avatar del usuario
I have been successfully working in the field of Application Development, Web Development & Mobile development. Working as a Full time Freelancer, I also have a small team of five Developers and provide services as Full Stack developer (front end and back end). Indulge with more than 8 years of experience in PHP/MYSQL/JS/HTML/CSS/Bootstrap/IOS/Android. I am flexible with short and long term Enterprise Software Solution. Our mission is to provide tomorrows solutions today, and to maximize customer satisfaction through innovative designs and applications with the best quality. My skills include - * CMS: WordPress, Drupal, Joomla, Open Cart * PHP Framework : PHP/Mysql, CodeIgniter, Laravel and YII * Designing skills: Responsive Html5/css3, PSD slicing, Mockups, Bootstrap UI. * Mobile App: Android & Iphone (Native) * JavaScript: Angular, React, Node * Tools: Zendesk, Agency Analytics, Call Rail, Google page insight, GT Matrix
$30 USD en 2 días
5,0 (6 comentarios)
4,0
4,0
Avatar del usuario
Hi, Ready to start the work. kindly share the required details so that i can start the work asap. If you have any other queries let me know. Thanks Arit
$30 USD en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
Hi, I am Senior Web developer with the experience of seven years in IT industry (Web Development+Mobile App Design & Development, CMS development and much more). The website will be serviced as: -Pixel perfect design. -Responsive on all screen sizes. -Fully functional as secure login/Registration system. -SEO Friendly
$55 USD en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED KINGDOM
Sheffield, United Kingdom
5,0
2
Forma de pago verificada
Miembro desde nov 16, 2011

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.