grishka / Houseclub

A barebones unofficial Android app for Clubhouse
The Unlicense
2.36k stars 401 forks source link

Support for sending invitations #18

Open zm21 opened 3 years ago

stypr commented 3 years ago

fyi

Steps to reproduce

  1. Call suggested_invites with contact information (https://github.com/stypr/clubhouse-py/blob/v304/clubhouse.py#L880-L890)
  2. Invite user based on the suggested invites(https://github.com/stypr/clubhouse-py/blob/v304/clubhouse.py#L892-L903)

Note

stypr commented 3 years ago

fyi Steps to reproduce

  1. Call suggested_invites with contact information (https://github.com/stypr/clubhouse-py/blob/v304/clubhouse.py#L880-L890)
  2. Invite user based on the suggested invites(https://github.com/stypr/clubhouse-py/blob/v304/clubhouse.py#L892-L903)

Note

  • Do not mess up the steps
  • The phone number should include the country code.
  • Message can be empty.

Could you please make it as a pull request? I would like to download it

Sorry. Currently I am only explaining how the flow works. You can send a PR based on what I suggested here. I'm just here from clubhouse-py project to explain how flows work for each features

oceantiee commented 3 years ago

Можно подробней объяснить как это работает для не самых одарённых? Желательно на русском и по шагам что за чем делать, а то смотрю в код, а вижу фигу. Заранее спасибо

darkzenon commented 3 years ago

Можно подробней объяснить как это работает для не самых одарённых? Желательно на русском и по шагам что за чем делать, а то смотрю в код, а вижу фигу. Заранее спасибо

В прилржении такой функции нет. Доступно есть работать напрямую через неофициальный api на python

grvmind commented 3 years ago

Можно подробней объяснить как это работает для не самых одарённых? Желательно на русском и по шагам что за чем делать, а то смотрю в код, а вижу фигу. Заранее спасибо

https://github.com/grvmind/clubhouse_inviter

zm21 commented 3 years ago

how to find out how many invitations are left

fyi Steps to reproduce

  1. Call suggested_invites with contact information (https://github.com/stypr/clubhouse-py/blob/v304/clubhouse.py#L880-L890)
  2. Invite user based on the suggested invites(https://github.com/stypr/clubhouse-py/blob/v304/clubhouse.py#L892-L903)

Note

  • Do not mess up the steps
  • The phone number should include the country code.
  • Message can be empty.

Could you please make it as a pull request? I would like to download it

Sorry. Currently I am only explaining how the flow works. You can send a PR based on what I suggested here. I'm just here from clubhouse-py project to explain how flows work for each features

how to find out how many invitations are left

grvmind commented 3 years ago

how to find out how many invitations are left

with clubhouse-py like this:

clubhouse = Clubhouse(
    user_id=user_id,
    user_token=user_token,
    user_device=user_device
)
print(clubhouse.me())
bit-world commented 3 years ago

package me.grishka.houseclub.api.methods;

import me.grishka.houseclub.api.BaseResponse; import me.grishka.houseclub.api.ClubhouseAPIRequest; import me.grishka.houseclub.api.model.FullUser;

public class InviteToApp extends ClubhouseAPIRequest {

public InviteToApp(String name, String phone_number, String message){
    super("POST", "invite_to_app", BaseResponse.class);
    requestBody=new InviteToApp.Body(name, phone_number, message);
}

private static class Body{
    public String name;
    public String phone_number;
    public String message;

    public Body(String name, String phone_number, String message){
        this.name=name;
        this.phone_number=phone_number;
        this.message=message;
    }
}

}

darkzenon commented 3 years ago

Можно подробней объяснить как это работает для не самых одарённых? Желательно на русском и по шагам что за чем делать, а то смотрю в код, а вижу фигу. Заранее спасибо

https://github.com/grvmind/clubhouse_inviter

у вас должен быть учетка с инвайтами. тогда войдя в консоль вы можете отправить приглашение другим. уведомления они не получают но приглашение работают.

dvkolesnikov commented 3 years ago

https://github.com/grishka/Houseclub/pull/154