Is there is an updated PHP client library for Fusion Tables? or maybe a very concrete copy+paste insert rows example?
I I have visited https://code.google.com/p/google-api-php-client/ and downloaded their latest release file, but while having examples for lots of other google apis, I can't find any mention of fusion tables examples.
Additionally I have been trying to get https://github.com/marciuz/fusion-table-php-api-and-shell fantastic project to work, but keep receiving "invalid credentials" errors when using my fusion tables enabled server api key with his shell or with the php examples he uses. This is even for basic SHOW TABLES commands.
Is there a scope issue here I am missing?
Is there a very simple php example I can use to just copy and paste my credentials (clientID, client secret, redirect uri, api key) into and get right to inserting rows into my Fusion Tables? Maybe something like Invalid Credentials Error when passing Oauth 2.0 Access Token to Fusion Tables API in PHP, only hopefully it includes how to create the access token, and helps to insert rows instead of modifying styling?
I am trying to not reinvent the wheel on this one, and have been looking high and low for a simple working example to insert rows, that is not over my inexperienced head. Thank you, this has been literally driving me crazy.
Here is what worked for me:
"Ok so I finally got this to work and I thought Id share this with everyone In case you get stuck like I did. One step that seems to be missing from all usage examples I've seen is the service account email address needs to be added via Google Docs.
Select the document (FT) in Google Docs Click "Share"
Select "Add People" Enter your service account email address, e.g. myservice...#developer.gserviceaccount.com Ensure "Can Edit" is selected. Un-check "notify people via email" Click "Share and Save"
This was a complete guess on my part but seems to have fixed my problem. I can finally insert into my FT via my service account. Hope this helps."
For anyone else looking out there, I found this code and fix very useful for finally getting a solution with the google-api-php-client. https://groups.google.com/forum/#!msg/google-api-php-client/9d2lQAppTvg/vh8CRhWJb_YJ
Related
we have a android project that needs the following objectives:
*we also have a web application for this app that needs to communicate with the same database as the android application
what I have done so far:
a view of a map with a pinpoint on my current Location
mysql db containing information (including latitude and longtitude position)
registration and login
Real Time Database Objectives:
state that people are online or offline(updating a database).
Google Map Objectives:
When I press a button, the map will show other users who are online within a given radius so basically I need to view online people who are near me
Send a message to them [2 ways]
2.1 I send them a message by clicking their icon
2.2 I send everyone[online people within the radius] the message
Questions:
I am currently using php mysql for login/register. Can I use this for a real time database or is there any other way?
is Firebase somehow similar to a hosting site?
if there are other needed information needed, pls inform me, I may not have included information that could help with my questions :)
ill update my question too if I have more questions.
thank you.
I think for your requirements its is more appropriate to use Firebase as it fulfills all your expectations and provides additional features.
I am working on a website for my organization which will allow users of the website to create/modify/etc room reservations for a number of spaces in our building.
Each room has a Google Calendar which links to several monitors around the building to display what rooms are [un]available. So, my goal was to utilize these calendars by having the website I am creating edit these google calendars. The problem I am having however is that from all the documentation I have been able to find, it looks like you have to prompt each user for Google Log-In. This is what I am trying to avoid. I want individuals to be able to log-in to my website, and then on the backend my website provides the authentication to Google so that they can add/edit/remove events from the aforementioned GCals based on permissions on set on their account.
Can anyone help direct me to the proper documentation? I've found a couple of things through some intensive Google-ing of my own, but I've become extremely confused about what method I should be using.
Any assistance in getting things rolling is appreciated!
If I understand it correctly, the concept that you want is to create a website that writes into your own calendar and not on the users calendar. Exactly what this 3 part tutorial of Sample Web Page for Booking gives:
Part 1: Setting up Google Calendar
Part 2: OAuth2 and Configuring Your ‘Application’ With Google
Part 3: A Sample Web Page For Bookings
This tutorial worked for many like what has been done in this SO post - How do I connect to the Google Calendar API without the oAuth authentication?.
I am following this tutorial from androidhive. http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/
Everything is working But The tutorial only shows how to send a push to ONE device at a time. I would like to send a push notification to all devices at once using the same method. I believe the way to do this is by editing the send_message.php But i'm still trying to understand how his method works.
I have tried commenting and emailing the person who wrote the article but have not gotten a response. I just need someone to point me in the right direction.
Any hints, guildance, answers, comments are much appreciated.
Now that you have successfully implemented what that tutorial teaches, the basis idea now for sending to multiple users will be something like this:
To send push notification to multiple users, you need to create an application server in PHP.Your application server will receive the registration id from the android application and will store it in a database (may be mysql).
Now when you want to send the message to the application then you write a message and fetch all the registration ids from the database which was stored earlier.
You can follow this useful tutorial to achieve exactly what you want.
The tutorial which you have mentioned was made using GCMRegistrar which is deprecated now.Instead you need to use GoogleCloudMessaging API.The link which i provided uses the new way.Hope this helps you to implement what you want.
I'm attempting to use the QuickBooks API to sync up my company's product list with the workbook's item list. I have gotten through the OAuth system to be able to make read/write requests to the API, but always get an error while attempting to update an object.
The reference that I have been using is here, and within the same documentation is a reference to retrieving an object that I have been able to use just fine. This is the XML that I'm sending. I have been tweaking the XML for a few hours now to no avail.
The error message that I get is "QB item name already exists ERI=420962215". That ERI is my realm ID. It seems like QuickBooks thinks I am trying to add a new item, when I'm trying to modify an existing one. If I omit the name field or leave it null, it gives me an error as well.
The item that I am attempting to modify was created in QuickBooks, then synced through QuickBook's Sync Manager. I then authenticated my app to that workbook and have been able to read data easily. I only have an issue when I attempt to write. I have yet to try creating or deleting an object since I've been stalling out on updating.
I am trying to just set up a simple form on my company's site that will hit the API and update data when saving, but I can't find a way around this error.
Any help would be greatly appreciated. I began to have trouble on Friday and feel like I'm just spinning in circles now. I found a QuickBooks / PHP library and tried looking through it to see if I could find useful information, but it was a bit too large for me to locate what I was looking for, since I think the error is just some incorrect XML.
I have followed all the directions within the update reference and just can't make progress. I've double and triple checked that my authentication works, that the URL is correct, that I'm sending POST and not GET and that my XML matches the XML shown in that example.
UPDATE 2012-03-15
It seems the problem is that the API is not able to update an item that was created through QuickBooks. Ever item has an id and an idDomain, which indicates if it was made through the API (NG) or Quickbooks (QB). An example id/idDomain would be 1/QB or 2556587/NG.
Whenever I was doing this, I was able to perfectly update an item that was made through the API, but not one made through Quickbooks. After looking into the Supported Object Reference, I noticed that item assembly update/create is listed as beta.
It seems that what I wrote in the update is correct. I am not able to update items that were made in quickbooks through the API. I can read items made in quickbooks, I can create items and I can edit items made through the API, but editing an item made in quickbooks through the API returns this error.
A few things:
What URL are you POSTing to?
Can you show the full HTTP response you're getting? IDS has a bad
habit of returning error messages/codes that are sometimes ambiguous
if you don't look at the full XML response.
Some of these fields are not updateable: QtyOnPurchaseOrder,
QtyOnSalesOrder
You do know you can only use IDS/Sync Manager for applications you're
going to resell to other companies, right? i.e. you can't use it for
internal/one-off apps.
You're going to get much better support if you post these questions
to Intuit's developer forums: https://idnforums.intuit.com/
You may consider migrating to QBO V3 it is way better and easy to work with.
there is a very good api made to for this purpose. which you can get here.
https://github.com/consolibyte/quickbooks-php (Made By : Keith Palmer)
i am using this and am very satisfied with it.
Today at work I was asked to investigate a problem with contacts export from Hotmail.
It was working last month when i wrote the library. For my surprise it indeed was not working. I investigated a bit and i noticed that Microsoft has done some updates to their API. The scopes were changed ... and the permissions that comes with the scopes. Here is the line that bothered me
WL_Contacts.View -
View information about a user and the user's friends, with the exception of email addresses.
They stripped the priviledge of obtaining contacts email addresses :(
What i have to do in order to get the e-mails back so i can use my exporter again ?
Do you have problems with your contacts importers ? If not, what are you using ? Which scopes ? Are you doing separate requests for each user ?
First of all, you can find tons of information about the new Windows Live Connect API here.
Here you can find version 5 of the API documentation.
If you want to sign up and create a Application you can do that here.
I hope this is enough to get you started (unless you've already found the provided links).