What is the url for the google account sign in dialog?
-
Trying to figure out what the url is for the google account sign in dialog. Anybody happen to know or have a suggestion as to how to figure out?
-
That username is an email address that you used to sign up for the 3D Warehouse. In the simplest situation, it is the same as your Google account email address (most often than not it is a gmail account but not necessarily).
The password is just the password you have for this account.
-
I think my question wasn't clear. I'm not a SketchUp newbie, I'm working on a plugin, and I I want to load that dialog window using the api, and I don't know what the url is for that dialog box.
-
It's not a WebDialog.. it's a native dialog, and there is no API send_action string for it (that I know of.) I also cannot bring up the dialog with the ID on Windows, so this may be a security feature in the
Skethcup.send_action()
method.You'll need to direct users to manually press the LogIn button (3rd from left,) on the statusbar.
-
Dan,
thanks for your help. I was hoping it wasn't a native dialog. I've been poking around in SketchUp.dat hoping that would give me a clue, and came across this:
[SUBSTITUTIONS] // Explict Substitutions - currently only these three are supported {WAREHOUSE_SERVER}=http://sketchup.google.com {GWS_SERVER}=http://sketchup.google.com {VERSION}=gsu8 [URLS google.com] HELP_GAIA_ACCOUNT_ACCESS=http://www.google.com/support/accounts/bin/answer.py?answer=48598&hl={GWS_CULTURE} HELP_GAIA_CREATE_ACCOUNT=https://www.google.com/accounts/NewAccount?continue=http://sketchup.google.com/3dwarehouse/&hl={GWS_CULTURE}&service=warehouse [GAIA] GAIA_ACCOUNTS=https://www.google.com/accounts/ GAIA_WAREHOUSE_SERVICE_NAME=warehouse GAIA_APP_SIGNATURE=Google-SketchUp-
Looks like native dialogs are calling urls. Don't think anything can be done with this, but thought you might find that interesting.
-
However... that dialog DOES popup if the user is NOT logged in, and certain commands on the Google toolbar are activated.
See my [Code] post on
Sketchup.send_action()
args. (just updated it to show the cross-platform strings for ver 8+.) -
IF you must, you can instantiate a
UI::WebDialog
object, that uses:def login_to_3D_warehouse() title = "3D Warehouse Login" key = "3D_Warehouse_Login" settings = Hash[ ;dialog_title, title, ;scrollable, false, ;preferences_key, key, ;min_height, 500, ;min_width, 600, ;height, 500, ;width, 600, ;left, 400, ;top, 300, ;resizable, true, ;mac_only_use_nswindow, true ] dlg = UI;;WebDialog.new( settings ) lang = Sketchup.get_locale[0..1] dlg.set_url("https://www.google.com/accounts/ServiceLogin?service=warehouse&passive=1209600&continue=http://sketchup.google.com/3dwarehouse/?hl%3D#{lang}&followup=http://sketchup.google.com/3dwarehouse/?hl%3D#{lang}") return dlg end # login method # elsewhere in your code; login_to_3D_warehouse().show()
Advertisement