gyazo / Gyazo-for-Linux

Gyazo for Linux
http://gyazo.com
352 stars 104 forks source link

How to retrieve proper gyazo user ID? #93

Closed fukuchi closed 6 years ago

fukuchi commented 6 years ago

Hi,

I want to connect the gyazo app to my existing gyazo account. As far as I know, I should put my gyazo ID in ~/.gyazo.id , but I don't know my gyazo ID.

How can I retrieve proper ID?

carestad commented 6 years ago

Just found out how.

  1. Go to https://gyazo.com/settings, make sure you are logged in with your user account
  2. View the source of the page (CTRL+U) and look around line 15. You will see a line that looks a little bit like this:
ga('set', 'userId', 'abcdefghijklmnopqrstuvwxyz0123456789');

Where the abcde(...) part is your ID.

fukuchi commented 6 years ago

Thank you, @carestad.

It did not work as expected, however. I could find my userId using the above method, but the ID in .gyazo.id replaced with newly given ID after launching gyazo.

One possible factor is that the userId of mine is "YYYYMMDD..." style 14 digits number, not MD5-like hash.

Probably they reject my user ID from gyazo client?