Room rating request "requires an authenticated request"

pepsicolaa
by pepsicolaa · 3 posts
2 years ago in Javascript
Posted 2 years ago · Author
Hello, i've sniffed imvu request and found the endpoint to submit an imvu rate for a room, so i wrote a small JS code to post the right data to it, but when i do, it simply doesn't work, the server returns me "error: this service requires an authenticated request", thing is, i have no idea what they mean by that, since i already used this kind of request and only setting the "credentials:include" in my fetch request would make the trick as long as i'm logged in imvu with my browser

here is the JS snippet to run in a imvu website to avoid cors errors:
Code
const postBody = {
score: 5,
room_instance_id: 'room instance id here' // Eg: 10000000-42
}
const rateRoom = () => {
    return fetch(`https://client-dynamic.imvu.com/api/rooms/room_rating.php`, { "credentials": "include",method: 'POST', body: JSON.stringify(postBody) })
        .then(response => response.json())
        .then(data => {
            return console.log(data);
        });
}
rateRoom();


if someone know what data i need to send with it for it to work in my browser, it would be great to share, i would like to try a few stuff with this endpoint, see how their server reacts
Posted 2 years ago · Author
It does, i already used the same method to get the room data,it's the same subdomain and it works, i feel like i need to send another data, but i can't figure out what exactly

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