I want to create an api for orangehrm to punch in & punch out but i am unable to find any documentation to create an api.
Anybody knows the standards or reference to create API for Orange HRM using XMLRPC,JSON etc..
Here's a 4-page overview of its support for web services. Note the Web services controller on page 4.
http://web.archive.org/web/20110822071832/http://www.myplick.com/view/4LD-9rCeJwJ/OrangeHRM-architecture-For-Web-Services?
Since its PHP based you can use one of the following:
The phpxmlrpc library(used by Joomla) OR the IXR library (used by Wordpress)
Then Read on the xmlrpc specification
Learn best practises from looking at the Joomla & Wordpress implementations. Security is very important
All the best!
EDIT:
There's also the built-in PHP library that you can enable as an extension
Related
What is the right way to integrate third party api in magento . Logistic API integration is provided , but need help with the right process to make it work.
Thanks in advance
Assuming that you want to consume an external API from Magento this would be the correct structure:
For Application related logic create a Module in local namespace
(/app/code/local/(vendor-name)/(module-name))
Enable your Module with an xml in /app/etc/modules/
Put your Api related libraries or logic under /lib/
Make use of Api libraries in Models under
/app/code/local/(vendor-name)/(module-name)/Model
UPDATE:
I found a sample Magento 1 Module on github, that simply consumes google weather api.
https://github.com/careys7/Magento-Weather-Sales
An alternative solution could be, especially when trying to integrate an API that's not directly supported by Magento, to use flowground. It offers flexible API integration for thousands of APIs with dedicated connectors, e.g. Magento 1 and Magento 2.
Check the list of integrated connectors and GitHub for the list of available Open-Source connectors.
I want to implement Oauth to protect my PHP Web Services,i have been following this link but found that some of them link are not working.And the working example had implemented in slim,flight some different frameworks in php and i'm newbie in it.My problem is i want to implement Oauth in Codeignter framework to protect Web Service and as per oauth site i've got a link by Alex Bilbie which is deprecated and not working. So if someone had done this before in codeigniter please let me know , Simple PHP would be also fine, later on i can modify it to fit in codeigniter.
I find Brent Shaffer's OAuth2 Server Library for PHP an excellent library!
In the cookbook you can find many examples on how to integrate it into certain frameworks, unfortunately CodeIgniter isn't one of them. But the documentation is very good, and you can use the cookbooks on the other frameworks as a guide for doing it in CodeIgniter.
You can find the library on Github.
I have been struggling to find an active open-source PHP project that supports OAuth 2.0 as a server. There are tons of client examples that connect to Facebook, Twitter, etc. but as more and more people want to expose their own services through an API I'm a bit surprised the open source community hasn't addressed this need already. It's not that there is nothing but what's there is mostly out-of-date, little-to-no documentation, and very little to no activity in terms of current development and conversation.
Am I missing a good open-source option out there? Does anyone know of any commercial options? I really need to get something in place soonish and I personally don't have the bandwidth or security credentials to tackle this problem myself.
After much searching around I believe I have found the best solution for PHP'ers out there. Opinions are a dime a dozen but here's my favourite:
http://bshaffer.github.io/oauth2-server-php-docs/
Very active, high quality conversation and a solid product along with good (and improving) documentation.
Here is the list of available server and client libraries:
http://oauth.net/2/
which leads to a github project which is maintained.
oauth2 server by php league is much more followed and downloaded project on github. My personal experience has been awesome and the best part is it's documentation. Excellent implementation of oauth2.
According to http://www.zimuel.it/oauth2-apigility/ & http://apigility.org/documentation/auth/authentication-oauth2
You now can implement OAuth 2.0 Server using the open source project Apigility, with Brent Shaffer's implementation underneath...
in the end...
The OAuth2 implementation in Apigility uses the oauth2-server-php
library by Brent Shaffer. Apigility uses a PDO database to store all
the information related to the OAuth2 protocol. You can create your
database using the schema reported in the file
/vendor/zfcampus/zf-oauth2/data/db_oauth2.sql under your Apigility
installation folder (zf-apigility-skeleton).
I'm looking to implement a real-time collaboration on a document on the web. Is there some sort of library that enables it in PHP? Something similar to SignalR which creates 'persistent connection' by using long-polling.
update found this library for pubsubhubbub http://code.google.com/p/pubsubhubbub/source/browse/trunk/publisher_clients/php/
Searching on the library name led me to How to implement PubSubHubbub?
Checkout pubsubhubbub
http://code.google.com/p/pubsubhubbub/
I am using sfOpenID plugin for Symfony, which doesn't support OpenID 2.0. That means, for example, that people using Yahoo! OpenID can't login to my site.
There is an OpenID 2.0 plugin that works with sfGuard, but I am not using nor planning to use sfGuard. Plus, it requires to install Zend framework, too, which is an overkill in my scenario.
So I've got two questions, really:
is there another OpenID plugin for Symfony supporting OpenID 2.0?
what would be the hack required to make sfOpenID support OpenID 2.0?
I suppose I could study OpenID specs and hack it myself, but then, I am a lazy programmer :)
I think you've covered all your options with sfOpenID and taOpenIDsfGuardPlugin for Symfony's plugins.
Without studying OpenID's specs in detail though, you could try one of those PHP libraries (http://wiki.openid.net/Libraries) by dropping it in your lib and connecting to a sfUser, or whatever you're using for authentication. There is also the OpenID Enabled library (http://openidenabled.com/php-openid/) which still uses PHP4 although compatible with PHP5 if you tweak the error reporting level to exclude some warnings.
There are a few tutorials out there that explains how to enable OpenID on your site with PHP: http://www.saeven.net/openid.htm or http://www.plaxo.com/api/openid_recipe.
And better yet, use this knowledge to make a sfPlugin out of it afterwards.
There is an easier way. JanRain offers OpenID (and facebook) as a service http://rpxnow.com . Vastly easier/quicker than going native with the libraries.
i had ( and i'm still having ) the same problem. Firstly there isn't any php5 openid library that is feature complete. The only one was abandoned for the one shipped with Zend Framework.
So you either write your own ( don't recomend , lot of work ), or use the one from Zend ( that is what i Use).
The problem is that it is heavily embeded into Zend and requires lots of ZF stuff.
Maybe i will publish a plugin similar to taOpenIDsfGuardPlugin but for use withouth sfGuard, because it's often asked for ( and i will need it for my future projects ;))