Skip to content

Files

Latest commit

 

History

History
22 lines (18 loc) · 563 Bytes

create-membership.md

File metadata and controls

22 lines (18 loc) · 563 Bytes

import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams;

Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID

Teams teams = new Teams(client);

teams.createMembership( "[TEAM_ID]", listOf(), new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); return; }

    Log.d("Appwrite", result.toString());
})

);