GoToTraining api integration with zend php framework

This is a sample format of code for integrating GoToTraining API within a zend framework project. I have integrated this API on one of my ongoing project. That time I faced a lot of challenges because of poor documentation without examples, provided by Citrix. After tackling every challenges, I integrated this API to my project successfully. So here I’m sharing the code which helps you to integrate this API, if you want.

To integrate GoToTraining API, first we should have a Developer Account (to generate API key) and Citrix online product account (to authorize the API key using Oauth 2.0). To know more about authorization process refer here.

After successful authorization process you will get following credentials, which are needs to be stored somewhere to use later.

i) Access Token: all API calls have to be requested using this token.

ii) Refresh Token: This is used to renew the access token when it is getting expired.

iii) Organizer Key: The key of Training organizer.

iv) Account Type

v) Account Key





You can integrate other GoToTraining API methods, as per the format specified above, by changing the URI and parameter values respectively.

Read More

Get date value using day name and week number of a month php

Here,  i’m going to explain one of the most powerful functions of PHP. Suppose if we want to get the date value using day name (like Sunday, Monday etc… ) and week number (like First, Second, Third etc..), use PHP strftime() function. This function has some crazy behavior. See the example given below:

Like this, try other patterns also. For more info about strftime() function refer here. To know about PHP date relative formats, click here.

Read More

Facebook page validation using Zend php framework

Here, I’m going to explain that the validation of  facebook page using its ID. We can verify that, whether the entered facebook page ID is valid or not by using PHP Zend framework. Please refer the code below:


Read More