google app script simulate external form submit button - forms

Is there any GAS example that explains how can I simulate the submit button of a given external site (not google site or form), and get the site results?
I have a site that gives me any company address (Portugal), based on the company name: this is a public site and I only have to enter the company name, press a submit button and get the main address, if it exists.
I need to find the addresses of about 1000 companies, and I would like to automate this boring task, since I have all companies complied in a single google sheet.
Thanks!
mdias

Related

How can i integrate ups street validation api on wix

I have a Wix e-commerce store, on checkout page, a user gives us name, phone address etc. I will like to integrate ups apis like pickup, rating, tracking and street validation.
I understand how to use Wix Dev mode and UPS APIs to an extend but my major challenge is that i can't find the checkout page on the list of pages. I don't know how i can get the values that a user have entered in the Wix checkout page.
I have been on this since yesterday and still can't find a solution

How to register if a specific contact visits a page? And how to validate if they performed a certain action? Mautic

First part of the question
I’ve registered in Mautic a number X of contacts via API from my main website, all those contacts have basic info including their name and id (I do not have their IPs). Now, I will send all of them a SMS with a link to a landing page. I want to register exaclty which of those X contacts are visiting the page.
I have to mention that a campaign exist for tracking this process. So, when a contacts visits the page, some actions or validations will ocurr.
What should I do to make Mautic know which contacts from those X are visiting the page?
My idea
Send the URL with a specifc parameter that somewhat allows Mautic to understand which one of the contact visited.
Is this possible? Do you consider there is a another way?
Second part
I have a form with one field on the page that register a cellphone number. I wish to register which contact is registering the number.
How can this be achieved?
My Idea:
I am thinking of adding another field asking the contact id, so the contact has to fill that in order to send the form
If you append the link sent via SMS with a ?email={contactfield=email|true}, the Mautic tracking pixel (cookie) will pick up this email when the user lands on the page and collapse the anonymous tracking session into the identified tracking session.
I haven't tested if you can also do this with SMS numbers or with contact IDs.
We publish our best practices for this, here: https://facetinteractive.com/blog/the-ultimate-mautic-setup-guide#emails

Google Apps Script > Google Forms - Automatically sending email to address on cell each time a response is submitted

don't know if this is the right place to ask for this:
I'm currently working on a in-house control system in Google Sheets. Everytime a sales rep enters a work order, this work order with info filled in the form needs to be send to the designer team via email.
The form contains a field for the designer's ID (The form is here).
I've got two problems, first the designer's emails are in a different sheet and the email must be send to the designated designer each time a response is submitted.
This is the spreadsheet I am working on this link.
The email must contain all the fields in the form.
Thank in advance.

Facebook test users and auth

I have a project where I am using Selenium to test the Facebook auth. I created a Facebook app, created a test user inside this app and created some tests using Facebook login. Until now, it was working. But during the last two weeks something changed in Facebook and my tests are failing. It is due to interface changes in permissions dialog (I am targeting the button by his id). The second problem is that I don't get the email address from Facebook test user but a proxy email which is longer than 75 characters (my db field length is hardcoded in framework I am using).
If I log in as a regular user, it is working correctly and I get this permission box:
But when I log in as the test user I created (via 'switch to' in app's developer roles), I get this box:
I tested it ~2 weeks ago and this was yet working. Today it is changed. So my questions:
How to get back the old permissions box for test users?
How can I get the real email address and not the proxy?
Thanks!
I experienced the same problem with the Auth Dialog. I tried it with some old and new apps with various settings including March/Apr. 2013 Breaking Changes enabled/disabled, but it didn't help.
However, I guess I can help you with the email problem. When you login as a test user and go to account settings page, you will see the test user's primary email addres. By default this should be a really long one like the image I attached.
Facebook Platform returns this primary email address. If you pass the Auth Dialog with your test user account and see the privacy setting page, you will find the default primary email address is shared with the app. You have to provide a new email address for the test user and set the new one as primary email address via account setting page.
Why is the Login Dialog different with a test user?
With your test user, you can see the future of login dialogs. In fact, this isn't "not working" but this is an update which was unveiled on December 2012. Let me quote:
Our Login dialogs have undergone a redesign to make it easier to
understand permissions that apps request. We've simplified
presentation and have also updated our language for greater clarity.
“Basic info” has been renamed to “public profile and friend list,” to
reflect what what is being shared. Apps accessing your public profile
get your name, profile picture, age range, gender, language, country
and other public information.
Source: Providing People Greater Clarity and Control, developers.facebook.com/blog
The reason why you don't meet this update with a regular user, is that Facebook doesn't use to update everyone at the same time. They partially launch updates depending on the country, the type of account or some other parameters I ignore.
Example of a partial update (unified_message FQL table) dedicated to developer accounts:
We are providing early access to this API for registered developer
accounts only until the new messaging system is broadly available. You
should use the message table for production applications at the
current time.
In our case, we now know that test users can access to the update, but it is also said:
We have already launched many of these improvements as part of our
iOS6 integration and are now rolling them out more broadly.
About proxy emails
In fact, proxy emails are a way for any users to keep their real email anonymous. You have to consider proxy emails.
When joining an app, the user can choose between a real email and a proxy email:
Other thing you need to expect are users who didn't validate their account when connecting to your app, a case which is possible as described here and here.
Then, why do test users give back a proxy email? Because test users (being bots and having fake emails) didn't validate their emails.
You see that in at least 3 cases (and finally, test users are a good example), you need to handle these proxy emails. They are incidentally or accidentally met by developers and they can't be neglected. For your case, you can still try to disallow tests users who have a proxy email from accessing your app. But you should accept them and shouldn't force them to share their original e-mail addresses. A better solution is that you validate the test users emails:
Connect to the test user account that gives a proxy email
Add an email address (password needed here),
Go to the email mailbox and click on the validation link,
Set the new email address as primary,
The test user should now give his original email and not a proxy anymore!

generic form for Seblod (joomla 2.5 )

I'm a developer who has taken over a Joomla website, which was creatied using SEBLOD. The website is a listings website, which has over 300 listings on.
The purpose of the website is to get enquiries through the listsings.
Currently, the queries are attached to a button - which opens your email program and sends the email. This is not ideal.
Is there a way to create and attach a generic enquiry box or form to each listing, and include the name of the listing in this form when its sent?
Is there a way to create a form that can be attached on the frontend of the website page intead of
the "Request a quote" button.
To be candid, seblod is an impressive Joomla app, but I'm afraid you might not be able to get useful answers than on their forum, I've been using it now for over a year and I'm just coming to terms with some of its functionality. Visit the forums and you should be able to find a good answer from the devs there. Its an expansive suite so it might give some unique challenges.