Update a Google Sheet w/ API Data - rest

I'm using Google Sheets along with App Sheet to make a simple mobile app that tracks product inventory for me. It's working great. But I'd like to use a 3rd party API to bring in additional product info. I know how I can use IFTTT or Zapier to make a 3rd party API call, but I can't figure out how to make a 3rd party API call and then update my Sheet with the response. Is this possible? Thanks!T

David here, from the Zapier Platform team.
That's definitely possible! The first thing you'll want to do is decide on a trigger. Is this row only updated once (on creation) or on some other impetus (such as a different field being updated). For sake of example, let's assume creation. Your zap would look like this:
Trigger: New Row Created
Action: Code Step / Webhook Step (to fetch info)
Action: Update Row (using the data from steps 1 & 2)
There's more info about updating rows in the help docs here: https://zapier.com/help/google-sheets/#updating-rows
​Let me know if you've got any other questions!

Related

Building a simple web form that connects to Recurly's API to allow a subscriber to change their subscription plan

I am trying to build a simple web form that would ideally sit on a WordPress page to allow the subscribers on our platform to change or update their subscriptions, without having to ask our support team (currently they can only cancel, but we want to offer them the option to upgrade).
We use Recurly to manage our billing, and their support team said:
'You would essentially want to build a form that will input values into the Subscription Update API request, that would then be sent to Recurly to make the changes on your customer account.'
They also shared the following document: https://dev.recurly.com/docs/update-subscription
I have limited experience of working with APIs and am also aware that because this form deals with sensitive information (the user ID of a subscriber in this case), I don't want to inadvertently jeopardise the accounts of the subscribers that choose to do this.
Any help would be much appreciated. I have tried searching for a solution but am unsure how to word my request effectively.
It sounds like using the Recurly Hosted UI might be your best bet. Instead of having to build a a web form you can just redirect your customer to the Recurly Hosted UI on a button click. You can retrieve and redirect the url using the Recurly API on your Wordpress site using some simple PHP and then that allows the customer to view invoices, change their plan (if you allow), and change CC information.

Is there a way to dynamically upload catalog items from my database to PayPal Here using the API?

I'm looking to see if it's possible to add catalog items that are always changing with code rather than manually entering them one by one. I want to do this to make use of the barcode scanning feature on the PayPal Here POS app in a store that never sells the same item twice.
Here is the entry page I'm looking to automate with the PayPal API:
image of PayPal interface (was too new to stackoverflow to embed it)
I haven't found a hint of this in the API docs or on the web. Does anyone know if it's possible?

Creating reminders and alerts with Smartsheet API

I'm wondering how to create new reminders via the Java Smartsheet API. I haven't been able to find anything related to that. I thought it might be in the Row or RowResources class. Here is a quote from the launch of the API claiming that it can be done:
"Use the API to automatically trigger events in Smartsheet. Automatically create project sheets or tasks, update and share
data, or send reminders."
Has anyone successfully done this?
The Smartsheet API does not currently support creating Alerts (i.e., reminders & notifications). (Apologies for the confusion -- I've updated the blog post you quoted to remove the reference to Reminders.)

Creating Paypal custom event registration forms

I have a very specific registration form that I need to build that collects an event attendees information and then sends that info plus payment to a Paypal business account. My client has given me the breakdown of how he wants the form to work and it goes something like this:
Registration Options: A) Single person/participant: cost $150.00 B)
Family group/ 2 or more participants: $300 total for the first two
each additional is $75. C) School group: For every six participants
paid at $150 each the 7th will be free
Select registration package: Number of Participants: Total cost for
participation:
This seems like a tough task even with Paypal's button building feature.
Can anyone offer any suggestions on how I might tackle this form? Possibly through a php form that will auto total based on fields filled in by the attendee?
There are a few different ways that you can do this. You could use some JavaScript or PHP to collect the data and perform the calculations. There are a few example of some basic scripts collecting data and performing calculations here that may help, or give you an idea of how you would go about doing this. The examples are free to use as is. There are several others that may help as well, under the basic scripts menu. Some are Java Script, others are in PHP. You can just right click the page and view the code for the JavaScript, and for the ones that are in PHP, there should be a link for the PHP code.

Can we move Google Analytics data to other account?

Started a webpage that now contains a lot of analytic data. Now that I have the client GA Tracking ID I would like to move the data I already have to that account.
Is this possible?
I get the Google Analytics API, I can always fetch all the data I want, but my problem is, upon I have the data how can I send / push this data to other account
in other words, How can I transfer data?
The domain is the same, only the account Id in use was a different one (my own, instead of the client's)
It is not possible:
You cannot currently transfer profiles or account data from one account to another account.
Google Analytics does not provide any flexibility with importing, exporting, or modifying any past data. Any data you have in one account cannot be moved to another.
With GA, the only way to get data in to an account is directly via __utm.gif requests, usually through their JavaScript snippet, but that doesn't allow for any way to import past data, since the date is fixed according to when the data is sent in.
Further, the Google Analytics API is read-only, and doesn't provide any way to import or move data.
(This answer is slightly less true for Universal Analytics
http://piwik.org/ is a good alternative, open source analytics system, not unlike Google Analytics, but without some of the constraints like this.
I think now it's possible to move data from one account to another.
Check out this article:
https://support.google.com/analytics/answer/6370521?hl=en
If you need to reorganize your properties in Analytics, you can move them (and their views) from one account to another.
Moving properties lets you keep your Analytics implementation current with your business. You might be reorganizing after a merger, after an internal restructuring, after hiring a new agency, or you might be developing a new Roll-Up strategy.
This was not possible in 2011 when the question was originally asked. Google added this capability to GA in 2016 (source). In addition to Google's documentation which engray provided, there are several blog posts which discuss how.
How to transfer a Google Analytics property from one Google Account to another
How to Move a Property to Another Account in Google Analytics
How to move a property:
Sign in to Google Analytics & navigate to Admin section.
In the ACCOUNT column choose the account that contains the property you want to move.
In the PROPERTY column, select the property you want to move.
Click Property Settings, then click Move property.
Select the destination account.
Choose your permissions settings.
Click Move.
Confirm data processing, then click Save.
Might be possible to do this as i was curious and found a few forum posts mentioning it:
Log into GA.
Goto the Account List.
Find your web property, you can't click the 'property' itself but a profile under it...
Then click on Admin on top-right side.
Go 'Up' a Level.
For example the breadcrumb says:
'Account list' › 'FOO (www.foo.com)' › 'FOO (www.foo.com) - (Default Profile)'
and now the breadcrumb should say when you click 2nd breadcrumb link:
'Account list' › 'FOO (www.foo.com)'
Now you have an option to add other users to this whole web property by going to the Users tab.
Add an Administrator user to this specific property. You can setup this user for them on gmail that they can change the password later after you set it up (or use their Google Account email they provide and maybe walk through with them to make sure they do it correctly).
Then login as that user, and delete the old user. Then that should 'transfer' to a new account.
What I do in this situation - export all data from Google account and import it into Tableau or QlickView. And use desktop analysis. In any case these data will be actual no more than 2 years.