I am trying to put this Google funnels API to work in my php server, just like Gapi, but I can't understand how to write the new queries.
The downloaded example is not working. I am not getting any data back!
I study the .php sample files in the "examples" folder contained in that API. However, they are very different from the original "Gapi".
So far there are no examples to work from. Every step to authorize my API to work seems to be OK, but I don't know how to verify this. How do I check that this API is OK on my php server? If it is, how does one create a simple query with this "MC funnels API"?
Related
Im new to SuiteCRM.
Can any one tell how to create a REST API from scratch for a custom module.
I went through the developer guide, but i need to know like in which file those REST API call has to be made (Referring the PHP example from the below link)
http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_6.5/Application_Framework/Web_Services/Examples/REST/PHP/Creating_Documents/#Overview
If you want to add your own API to your module, you probably are looking for https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_6.5/Application_Framework/Web_Services/Extending_Web_Services/
The example code you posted calls the REST API from the "outside" and works independently of Sugar.
So you can just save the example anywhere as test.php and run it with php -f /path/to/test.php.
You could also save it e.g. in the Sugar root dir to make it accessible to the web and just call it from your browser's address bar.
I want to make my web app (which is built with laravel) work offline...but I cant found out how to do it!
I am using the "app cache" for static files, but im not sure exactly how to handle the dynamic side of the app.
The app uses a database which im guessing I need to use localStorage for? (from what ive read online so far)
Im basically just looking for someone to point me in the right direction as im struggling to find much online on setting up Laravel for use offline
Thanks,
Dave
You can only have a static site offline with appcache. You cannot do this with laravel.
If you want to move the data into localstorage and have a semi- dynamic website, you have to completly change your architecture. Let me outline a possible approach :
A single page web app written in javascript ( using a framework like for instance ExtJs ) that connects to a backend in a form of a webservice that gives access to the database ( you could write it using laravel ).
When you are connected to the server you can load the data in localstorage When you are offline you can continue to work with the data. When the client reconnects, you have to synchronize the changes with the server.
Edit: As of 2020, Application Storage is deprecated. Look into ServiceWorkers instead.
I'm working on using the Etsy API and have been trying to complete this online tutorial but haven't been able to load any of the data successfully:
http://www.onextrapixel.com/2012/10/01/custom-products-webpage-layout-via-the-etsy-api/
When I load the page, it creates the cache file but the page is blank.
This is my first venture into APIs and I'm not sure how to troubleshoot what the problem might be. It seems like all of the code with loading it into the PHP webpage should work ok.
I've read about a few issues people have had using the Etsy API beacuse of the json cross-domain policy, so I'm wondering if that might be the issue, or if there might be authentication that is required.
I created a pastebin of the code from the tutorial here:
http://pastebin.com/RVDzjG4B
After checking the docs and the API, I got this.
API requests must be made over HTTPS.
Change your links to use https://.
I am using Facebook's PHP SDK. I looked here (official documentation by Facebook) for help. It is not working for me because I am using images hosted externally but if I try to upload files hosted within my server then it works fine.
Is there any new way to do this. Please try to explain both (Posting to feed and to some folder/album). Sorry for this question but others here were of no help to me.
Please suggest any PHP editor that is compatible with Facebook's API. (Auto-completion etc.)
Stack is normally for solving small issues (think using = rather than > in a query) not a complete project.
Have you attempted writing this code yourself, if so what errors is it spitting out? rather than saying it doesn't work.
If the images are stored somewhere out there, you need to download them to your server and upload them to FB. You can't just tell FB an URL of an image, it's not working like this.
In order to upload fotos, you may use the "photo post" Method on the FB API. And it wants the binary data of the image. You may link an input and an output stream to that (what I would prefer using Java since no storage is needed).
Since your code is working with locally hosted images, just encapsulate that part and make the external image an internal one first.
I've been trying to access Google Maps web services or even Yahoo Maps using PHP. When I run it, I get nothing. All the HTML and prints come out but absolutely nothing from Google service.
When I gave the code to my friend to run it on his local PC, it showed up fine and was working showing the map. But it seems I have trouble here at university.
Is it because I am behind a proxy? What could be the issue? Also the host can't be accessed outside the university.
Is there any solution to this?
If it is getting stuck on simplexml_load_file, and you are trying to use simplexml_load_file to get a remote file, and your University (like mine) has PHP in safe mode, this will fail. You can't get remote files like that in safe-mode. You should get the XML via cURL, and then use simplexml_load_string.
This would also explain why your friend could do it and you couldn't.