[C#] Imvu Login Code - Source [Updated 4-28-2014]

DataMine
by DataMine · 14 posts
10 years ago in .Net (C#, VB, etc)
Posted 3 years ago
I think their API sends " room does not exists " because you're not sending them an authentified request, try sending credentials with your request, the important cookie to send is "osCsid"
Posted 3 years ago
@pepsicolaa


i should be as i send back all the cookies that come back from the inital login with this line
cookieContainer.Add(Cookies); //add the found cookie to the container

Id bite the right hand off some working code lol
you know when you think your that close just dont seem to cross the finishing line
-sighs-
Posted 3 years ago
@Hecture


Not sure if it will help you, but I had to update my PHP login code about 6 months ago due to changes to IMVU's login system. Here is my current PHP login code. The main difference I am seeing, is that I am sending the gdpr_cookie_acceptance field.

Code
$username = "zzzzzzzzzzzzzzzzzzzz";
$password = "zzzzzzzzzzzzzzzzzzzzzzz";

$fields = [
      "username" => $username,
      "password" => $password,
      'gdpr_cookie_acceptance' => true,
   ];

$headers = array(
   'Origin: https://secure.imvu.com'
);

$postdata = json_encode($fields);

//Start: Login And Setup Cookies******************************************
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.imvu.com/login");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie.txt");
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_REFERER, "https://secure.imvu.com/welcome/login/");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
$results = curl_exec($ch);
//End: Login And Setup Cookies******************************************
Posted 5 months ago
@Hecture

You could try Rest API sending it on api.imvu.com/login?mail=password via OPTIONS method

Create an account or sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here

SIGN IN NOW

Create an account

Sign up for a new account in our community. It's easy!

REGISTER A NEW ACCOUNT