Support client.posts.create add attachments
Hello
Would it be possible to get support in adding attachments to be included in the client.posts.create options?
@elijah-wright
Looks like this is /rupload_igphoto/xxxxxxxxxxxxxxxxxxxx_0_yyyyyyyyyyy where X and Y are large numbers. I notice that the last number doesn't appear to change per client instance but the first one does. Maybe another repository has some better information.
From what I can tell you just post raw image data there. You get back:
{"upload_id":"zzzzzzzzzzzzzzzzzzzz","xsharing_nonces":{},"status":"ok"}
where Z is a large number.
Then you send it to /api/v1/media/configure_text_post_app_feed/ with the body as a SIGNATURE signed urlencoded json compatible with the type below:
interface Response {
text_post_app_info: string;
scene_capture_type: string;
timezone_offset: string;
source_type: string;
_uid: string;
device_id: string;
_uuid: string;
nav_chain: string;
caption: string;
audience: string;
upload_id: string;
device: {
manufacturer: string;
model: string;
android_version: number;
android_release: string;
};
extra: {
source_width: number;
source_height: number;
}
}
Where the upload_id is the number you got back in the previous.
awesome, I'll look into this today
the first large number is the upload ID but idk how to get it
I think you make it up. Which is weird. I could not find any requests on the app that remotely corresponded to it when profiling them
it's the same thing with the post ID too
already done in v2