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

DataMine
by DataMine · 13 posts
9 years ago in .Net (C#, VB, etc)
Posted 2 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 2 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 2 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******************************************

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
Select a forum Protection     Help & Support     Introductions     Mafia News     IMVU News General Discussion     IMVU Lounge        IMVU Series / Roleplaying        Social Games     Mafia Market     Mafia Tools        Premium IMVU Tools        Off Topic Tools     Off Topic     Contests Creator Corner     Graphics Design        Photoshop        GIMP     Basic Creator Help     Catalog And Product Showcase     3D Meshing        3Ds Max        Sketchup        Blender Gangsters with Connections     White Hat Activities        Google Hacking        Trackers Programming Corner     Coding        Python        .Net (C#, VB, etc)        Flash        JAVA        Autoit        Batch        HTML & CSS        Javascript        PHP        Other        IMVU Homepage Codes           General           About me Panel           Messages Panel           Special Someone Panel           Visitors Panel           New Products Panel           Rankings Panel           Wishlist Panel           My Badges Panel           Outfits Panel           Url Panel           Groups Panel           Slideshow Panel           My Room Panel           Sandbox panel           Layouts     Help & Requests Free Credits     Approved Methods     Submit Methods Free Money     Approved Methods     Submit Methods Adult Corner     Get Mafia AP Here     AP Lounge        AP Social Games        Casual Dating Tips     IMVU Slave Market & Escorts