Hello Abdul
Unfortunately, you did not provide us a lot of information. For example what code you were using to add members through the API. Anyway, to see the members in your desktop client, this might take a while. If you're able to get the members correctly through the API, the members will appear in the team after a while.
If this is not the case, please provide some more information and details, so we can investigate.
In case this does solve/answer your question, please mark this as the answer as a token of appreciation.
Best Regards