Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search a username possible #15

Open
witchfindertr opened this issue Dec 13, 2023 · 12 comments
Open

search a username possible #15

witchfindertr opened this issue Dec 13, 2023 · 12 comments
Labels
enhancement New feature or request

Comments

@witchfindertr
Copy link

search a username possible

@chemokita13
Copy link
Owner

A username who hasn't been taked?

@witchfindertr
Copy link
Author

A username who hasn't been taked?

no no no , search a username and get this username profile photo ,important for me

@AaditT
Copy link
Contributor

AaditT commented Dec 17, 2023

@witchfindertr

The /friends/info endpoint should give you the necessary data.

The usernames of users can be found at response['data']['data']['data'][index]['username'] and the profile picture url of the users can be found at response['data']['data']['data'][index]['profilePicture']['url']

below is sample code to query for profile pictures given a user:

def getFriendProfilePicture(username):
  friends = response['data'].get('data', {}).get('data', [])
    for friend in friends:
      if friend.get('username') == username:
        friend_profile_picture = user_info.get('profilePicture')
        if friend_profile_picture:
          return profile_picture_info.get('url')
        else:
          return "Not found"

@chemokita13
Copy link
Owner

@witchfindertr

The /friends/info endpoint should give you the necessary data.

The usernames of users can be found at response['data']['data']['data'][index]['username'] and the profile picture url of the users can be found at response['data']['data']['data'][index]['profilePicture']['url']

below is sample code to query for profile pictures given a user:

def getFriendProfilePicture(username):
  friends = response['data'].get('data', {}).get('data', [])
    for friend in friends:
      if friend.get('username') == username:
        friend_profile_picture = user_info.get('profilePicture')
        if friend_profile_picture:
          return profile_picture_info.get('url')
        else:
          return "Not found"

@witchfindertr Let me know if its that the solve for your issue pleas

@chemokita13 chemokita13 added the enhancement New feature or request label Dec 17, 2023
@witchfindertr
Copy link
Author

@witchfindertr

The /friends/info endpoint should give you the necessary data.

The usernames of users can be found at response['data']['data']['data'][index]['username'] and the profile picture url of the users can be found at response['data']['data']['data'][index]['profilePicture']['url']

below is sample code to query for profile pictures given a user:

def getFriendProfilePicture(username):
  friends = response['data'].get('data', {}).get('data', [])
    for friend in friends:
      if friend.get('username') == username:
        friend_profile_picture = user_info.get('profilePicture')
        if friend_profile_picture:
          return profile_picture_info.get('url')
        else:
          return "Not found"

thank you bro but ı need any user profile image

@witchfindertr
Copy link
Author

@chemokita13
Copy link
Owner

not working for me https://mobile.bereal.com/api/search/profile?query=[usernamehere]&limit=20

whats the error ?

@witchfindertr
Copy link
Author

not working for me https://mobile.bereal.com/api/search/profile?query=[usernamehere]&limit=20

whats the error ?

ı dont know maybe new param

@witchfindertr
Copy link
Author

not working for me https://mobile.bereal.com/api/search/profile?query=[usernamehere]&limit=20

whats the error ?

this is possiple please try :(

@chemokita13
Copy link
Owner

not working for me https://mobile.bereal.com/api/search/profile?query=[usernamehere]&limit=20

whats the error ?

this is possiple please try :(

let me some time to search whats the error, maybe there is a new endpoint

@witchfindertr
Copy link
Author

not working for me https://mobile.bereal.com/api/search/profile?query=[usernamehere]&limit=20

whats the error ?

this is possiple please try :(

let me some time to search whats the error, maybe there is a new endpoint

any update ? https://mobile.bereal.com/api/search/profile?query=[usernamehere]&limit=20 Have you tried this sir?

@chemokita13
Copy link
Owner

not working for me https://mobile.bereal.com/api/search/profile?query=[usernamehere]&limit=20

whats the error ?

this is possiple please try :(

let me some time to search whats the error, maybe there is a new endpoint

any update ? https://mobile.bereal.com/api/search/profile?query=[usernamehere]&limit=20 Have you tried this sir?

Sorry for let! I will try it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants