ErrorxCode / EasyInsta

A Java library of Instagram's private API and wrapper of instagram4j. Surf Instagram programmatically, build bots, and a lot more. Just a line of code for every operation.
Apache License 2.0
46 stars 10 forks source link

return instagram object when posting instead of null #34

Closed atpanos closed 6 months ago

ErrorxCode commented 1 year ago

Instead, what you can do is check the success and failure of the result in the method body itself and then throw an exception if it fails.

atpanos commented 1 year ago

I need the id of the created post. If I want to delete it in the future I have then the id stored.

ErrorxCode commented 1 year ago

Then change the type of AsyncTask<Void> to AsyncTask<String> and return post id from the response of api call.

ErrorxCode commented 6 months ago

Inactive!