Well, before any of it, set your phone/iPad. laptop to remember the Wi-Fi nenosiri so wewe only have to ask once.
Then wewe could say, "Hey, I need to (something on the internet that the person knows is important to you), but I don't have your Wi-Fi info. Can wewe put it for me?"
Then your good. If they say no, wewe just smile kinda sadly, but in an understanding way and say. 'Okay. it's cool." Then wewe ask if wewe can use their devise.
This is the one i always use, but if i'm in a kuvuka, msalaba mood, I'll just straight up ask. >u<