How to get the SiteId?

hello guys,

a new day a new problem! I try to integrate piwik in a third party programm. so i reach the point where i want to delete the user in my programm. so I also want to delete the user and his websites. the deleting of the user is no problem, but how can i delete the user if didn’t know the siteid. I got only the url and the alias of the url. has someone an idea?

thx bronco

you can call SitesManager.getSitesWithAdminAccess by using the token_auth of the user you’re querying for. Look also at other SitesManager.* methods.
You can get the token auth by getting the UsersManager.getUser( $userLogin )