Houseclub icon indicating copy to clipboard operation
Houseclub copied to clipboard

Support for sending invitations

Open zm21 opened this issue 4 years ago • 11 comments

zm21 avatar Feb 20 '21 13:02 zm21

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.

stypr avatar Feb 20 '21 17:02 stypr

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

playez avatar Feb 20 '21 20:02 playez

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

stypr avatar Feb 21 '21 00:02 stypr

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

oceantiee avatar Feb 21 '21 08:02 oceantiee

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

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

darkzenon avatar Feb 22 '21 07:02 darkzenon

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

https://github.com/grvmind/clubhouse_inviter

grvmind avatar Feb 22 '21 13:02 grvmind

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

zm21 avatar Feb 22 '21 13:02 zm21

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())

grvmind avatar Feb 22 '21 13:02 grvmind

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<BaseResponse> {

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;
    }
}

}

bit-world avatar Feb 23 '21 02:02 bit-world

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

https://github.com/grvmind/clubhouse_inviter

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

darkzenon avatar Feb 24 '21 10:02 darkzenon

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

dvkolesnikov avatar Feb 24 '21 16:02 dvkolesnikov