sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    What is the url for the google account sign in dialog?

    Scheduled Pinned Locked Moved Developers' Forum
    7 Posts 3 Posters 415 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      Shoff
      last edited by

      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?

      https://lh4.googleusercontent.com/pNXZjWqnRk3On8wKnVB-wud9ArXr_-Ir6Gg6TUBcNGlGlCqA-_bJU8lwjiAF09SfEy2ivRfF6NkHJDnMN1mM959gumFhdw9IrZ4=w1024

      1 Reply Last reply Reply Quote 0
      • GaieusG Offline
        Gaieus
        last edited by

        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.

        Gai...

        1 Reply Last reply Reply Quote 0
        • S Offline
          Shoff
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • Dan RathbunD Offline
            Dan Rathbun
            last edited by

            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.

            I'm not here much anymore.

            1 Reply Last reply Reply Quote 0
            • S Offline
              Shoff
              last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • Dan RathbunD Offline
                Dan Rathbun
                last edited by

                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+.)

                [Code] Sketchup.send_action() : Arguments to

                I'm not here much anymore.

                1 Reply Last reply Reply Quote 0
                • Dan RathbunD Offline
                  Dan Rathbun
                  last edited by

                  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()
                  
                  

                  I'm not here much anymore.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Buy SketchPlus
                  Buy SUbD
                  Buy WrapR
                  Buy eBook
                  Buy Modelur
                  Buy Vertex Tools
                  Buy SketchCuisine
                  Buy FormFonts

                  Advertisement