简体   繁体   中英

open Vine profile with username from iOS app

I found that vine://user/907031926412546048 is working.

is there any way to open by username? vine://user/canaksoy

or any api call to find username by userid?

I would shy away from hard coding this. Usernames can change instantly and by hard coding it in, you literally would have to push an app update just to correlate to that new username. I think by using a user ID number its guaranteed and leaves no room for error. But if you really don't want to do that here is an alternative:

This is untested on my behalf, but I do know they have custom urls, you might be able to play with this:

https://support.twitter.com/articles/20170806-vine-profile-urls

A profile URL is a unique Vine profile address accessible from the web. Once you select an available URL you will be able to access your profile by visiting vine.co/[yourURL]. Selecting a custom URL allows you to share your profile easily and makes it easier for others to find and watch the videos you've created.

EDIT based on the discussion below :

This is why it's important to use unique ID :

A quick search for everyone with the username of Drew Carey:

PIC1

This is why they don't have usernames in my opinion. Because they aren't unique. Even vine utilizes the unique ID when you invite someone to see your vine or profile via text or email. Additionally, when you sign up through twitter it shows your real name. There is too much room for error. I would simply ask the users to enter their custom url if they have one or unique ID until this feature is available publicly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM