Accessing Google App Engine's Search API from PHP - php

Is there anyway to do this? I've looked in the google-api-php-client library but it's not there yet. Is there any other way or am I out of luck?

The search API is only enabled for Python Java and Go, as Mario pointed out.
I would look into the modules documentation and try to separate your logic. Your search API can be the only module that isn't in PHP. There is no other solution for your problem unfortunately.

The team promised that a REST API would be made available at Google I/O 2011. I haven't been able to find any follow ups since.
https://www.youtube.com/watch?v=7B7FyU9wW8Y#t=2088

You CAN now access the Search API natively from PHP.
The library is in alpha but should make its way to release fairly soon.
It uses the Google Protocol Buffers so it's the same level of abstraction as the Python/Java/Go SDKs
https://github.com/tomwalder/php-appengine-search
Feedback appreciated!
I ran into this problem previously, so wrote a sample PHP+Python module pair to allow access to search via URL fetch to a Python module.
https://github.com/tomwalder/phpne14-text-search

I have a similar scenario as you. This might not be the best solution, but I've solved it as follows:
I've created a Python module using Google Endpoints API to expose a set of methods capable of sending and receiving JSON formatted data via HTTP GET or POST. These methods allow me create Documents and Indexes or do queries.
My PHP client, simply calls these urls and passes appropriate data.
So effectively I have a wrapper around the search API and the python stuff is hidden inside.

Related

Get data from SAP CRM to PHP

I'm trying to automate getting(posting) data from SAP CRM using my server (cURL/PHP+MSSQL), but have some problems with it.
There is no access allowed except this web interface.
I tried to use cURL, using POST fields from FireBug, but it returned only logon error.
Questions:
Is there any solution or API?
Has anybody tried it?
Thanks.
Yes, there are APIs, though you'll have to be more specific about exactly what data you want in order to say if a particular API to serve your needs exists. SOAP web services are an option that may provide the information you need and there are PHP SOAP libraries. You'll need to talk to your SAP team to get access to the system, and you will probably want to be much more specific about the exact data you need access to.
If your company has Gateway, you can also define OData APIs. And it is, of course, possible to define your own RESTful (or other) HTTP APIs using SAP's HTTP stack. Again, you'll need to talk to your SAP team about this.

Extracting svn information from Jira

Is it possible to extract svn information (commits etc.) from Jira via its api (Soap, Rest). I have Jira Subversion plugin enabled and it shows information about commits, but I don't know how to extract this information calling the api methods.
This is a very interesting question. I do not know for any API call and the SubversionPlugin Documentation doesn't suggest one. But you could always get direct access to a read-only copy of your JIRA instance's DB or query it using the API.
Your best options is to try posting a question on the Atlassian answers site or better yet creating a support request.
The thing is that if there is no API currently, they could be developing one right now and Atlassian may connect you with the developers so that they can give you further information.
They may even provide you with some early-access solution. I know this because we've used this option at the company I currently work at, but with the Tempo plugin. Hope this helped.

how to fetch data from JIRA using PHP application?

how to fetch data from JIRA (Bug tracking tool) using PHP application? is it possible or not?
Thanks,
Sagar.
Just check if this helps you in your find:
http://codingx.blogspot.com/2011/04/play-with-jira-api-from-php.html
There are a number of PHP clients that implement the SOAP interface so you can post issues, create users, execute searches using JQL, and anything else provided by the API. One such project is on GitHub at https://github.com/cpliakas/jira-client, and it is also available as a Composer package on Packagist.org at https://packagist.org/packages/cpliakas/jira.
Your best bet is probably to use the SOAP api for jira at http://confluence.atlassian.com/display/JIRADEV/JIRA+RPC+Services
Your best bet is probably to try the built in php soap client.

PHP Libraries/Classes that helped you easy using REST with JSON?

I would like to know what existing PHP libraries/classes have you used for your REST+JSON projects.
If I need to create a wrapper for social engines API such as Facebook and/or Twitter API, what existing PHP REST JSON architecture do you recommend?
JSON CONSUMING DEVICE (not PHP based) <--> PHP REST SERVICE <--> SOCIAL API
If all you need is a RESTful client, then I don't really see why you need a framework at all.
You can use e.g. the curl libraries to do an HTTP request (or even plain sockets), and then json_decode & json_encode for the JSON. That's it. That's your client right there. REST is not more than that.
I'm sure there are wrappers around PHP's curl library that are a little bit more intuitive for the RESTful "I just want to GET/POST/PUT/DELETE some data" approach, but then again it's at most 20 lines of code to roll a class that does that yourself.
Zend Framework has a REST library available, with client and server, as well as the REST route and controller. It also has context switching available, so it's easy to switch output to XML, JSON, or whatever you want if you extend it. There is also a Twitter service available, although I haven't tried it.

Is it just me...or is "Facebook Mobile Web" only for PHP?

http://wiki.developers.facebook.com/index.php/Mobile
I use Django/Python as my mobile website.
Am I missing something?
The library may be "officially' for PHP, But that doesnt stop you from making your own.
I would suggest looking at the API. You may be able to port the calls to python using python's httplib.
All the PHP library does is make curl POST and GET calls to Facebook's REST server.
If you are familiar with PHP or Javascript you may be able to look at the library and port the methods yourself.
I suggest a quick google search starting with: python facebook api
edit: In fact I just found: pyfacebook or pyfacebook (on github) These might be a good starting point for you also.
If I wasnt behind a restrictive work firewall I would pull up some API examples. sorry.
"Facebook Connect for Mobile Web is a PHP library..."

Categories