Showing posts with label php. Show all posts
Showing posts with label php. Show all posts

Thursday, March 12, 2015

Enhanced object properties in the PHP and Ruby libraries

The newest versions of the Google Calendar API and Google Tasks API use JSON as their data format. In languages like PHP and Ruby, it’s simple to turn a JSON object into something that can be easily read and modified, like an associative array or hash.

While creating and modifying hashes is straightforward, sometimes you want a true object and the benefits that come with using one, such as type checking or introspection. To enable this, the PHP and Ruby client libraries can now provide objects as the results of API calls, in addition to supporting hash responses.

Ruby gets this for free with the latest version of the gem. For PHP, you have to enable support in the client instance:
$apiClient = new apiClient();
$apiClient->setUseObjects(true);
The following examples for PHP and Ruby retrieve an event via the Calendar API, and use data from the new resulting object:

PHP:
$event = $service->events->get("primary", "eventId");
echo $event->getSummary();
Ruby:
result = client.execute(
:api_method => service.events.get,
:parameters => {calendarId => primary,
eventId => eventId})
print result.data.summary
If you have general questions about the client libraries, be sure to check out the client library forums (PHP and Ruby). For questions on specific Apps APIs come find us in the respective Apps API forum.

Dan Holevoet   profile

Dan joined the Google Developer Relations team in 2007. When not playing Starcraft, he works on Google Apps, with a focus on the Calendar and Contacts APIs. Hes previously worked on iGoogle, OpenSocial, Gmail contextual gadgets, and the Google Apps Marketplace.

Read more »

Sunday, February 1, 2015

PHP MySQL and Web Development in Urdu



Download Free PDF Book or read online Urdu tutorial book "PHP, MySQL Aur Web development" by Shakeel Mohammad Khan. If you want to become a web developer than you must learn PHP as PHP is a part of web development course and through this Free PDF Book you can easily learn PHP, MySQL in Urdu language very easily. The author of this Free PDF Book "PHP, MySQL aur Web Development", Mr. Shakil Mohammad Khan has tried his best to teach you the concept of PHP and MySQL in Urdu language. This Free PDF Book is a class wise book and there are 22 classes in this book, if you are hardworking then you can easily learn PHP in 22 to 30 days. If you want to learn PHP then you should learn Html first becuase Html is necessary for PHP course. You can easily learn Html course in maximum 10 days. If you want to learn Html first then download Html Urdu course book from HTML and XML in Urdu.
 Download Link

Read more »