Apollo-CustomApiCredentials icon indicating copy to clipboard operation
Apollo-CustomApiCredentials copied to clipboard

How to use the Imgur API?

Open madscientista opened this issue 2 years ago • 9 comments

I see that the code updated with Imgur support but how do I actually use it? I am registering an application in Imgur and it asked for callback. So what would I put? There’s also rapid api key that would require so much money to register 👀. Further advise needed.

thanks!

madscientista avatar Jul 01 '23 01:07 madscientista

I see that the code updated with Imgur support but how do I actually use it? I am registering an application in Imgur and it asked for callback. So what would I put? There’s also rapid api key that would require so much money to register 👀. Further advise needed.

thanks!

Spoiler I couldn't get it to work but this is what I tried.

  1. Sign up for X-rapid api key and copy key SCR-20230630-thzf
  2. Create an imgur account and creat an app with the following parameters

https://api.imgur.com/oauth2/addclient

image

  1. Click submit and grab the client id
SCR-20230630-tgux
  1. Input the ImgurClientID and ImgurRapidAPIKey in the Tweak.m file

  2. Build the tweak, inject with sideloady (I used sideload spoofer option), signed with iosappsigner (though any flavor altstore, sidestore, should work here)

I used this version of the decrypted ipa (https://github.com/Barusu-rem/apollo-decrypt-legacy-version/releases/download/production/Apollo_1.15.11_decrypt.ipa)

Steps above based on: https://rapidapi.com/blog/imgur-api-tutorial/

Now the problem is after I install the modified app when trying to use the imgur uploader I get this error

IMG_7D434F08709D-1

Not sure where I made a mistake

Barusu-rem avatar Jul 01 '23 02:07 Barusu-rem

I see that the code updated with Imgur support but how do I actually use it? I am registering an application in Imgur and it asked for callback. So what would I put? There’s also rapid api key that would require so much money to register 👀. Further advise needed. thanks!

Spoiler I couldn't get it to work but this is what I tried.

1. Sign up for X-rapid api key and copy key

SCR-20230630-thzf 2. Create an imgur account and creat an app with the following parameters

https://api.imgur.com/oauth2/addclient

image

3. Click submit and grab the client id
SCR-20230630-tgux
4. Input the ImgurClientID and ImgurRapidAPIKey in the Tweak.m file

5. Build the tweak, inject with sideloady (I used sideload spoofer option), signed with iosappsigner (though any flavor altstore, sidestore, should work here)

I used this version of the decrypted ipa (https://github.com/Barusu-rem/apollo-decrypt-legacy-version/releases/download/production/Apollo_1.15.11_decrypt.ipa)

Steps above based on: https://rapidapi.com/blog/imgur-api-tutorial/

Now the problem is after I install the modified app when trying to use the imgur uploader I get this error

IMG_7D434F08709D-1

Not sure where I made a mistake

Also seperate issue but viewing albums is also broken though that is a seperate issue relying on apollogur for caching (not sure what goes into that part of backend).

Barusu-rem avatar Jul 01 '23 02:07 Barusu-rem

@Barusu-rem Thanks for the detailed steps! Did you try this with 1.15.9? I am hesitant to update beyond that.

madscientista avatar Jul 01 '23 02:07 madscientista

@Barusu-rem Thanks for the detailed steps! Did you try this with 1.15.9? I am hesitant to update beyond that.

I tested with 1.15.11 though its not working for me.

@EthanArbuckle any ideas?

Rihcus avatar Jul 01 '23 02:07 Rihcus

I just tested this with 1.15.9 and same. Imgur does not seem to work.

madscientista avatar Jul 01 '23 03:07 madscientista

Seems like you have to actually subscribe to RapidAPI which is a minimum of $500/month for Imgur access

FlipABit avatar Jul 01 '23 07:07 FlipABit

Seems like you have to actually subscribe to RapidAPI which is a minimum of $500/month for Imgur access

Unfortunatly you seem correct

Imgur: SCR-20230701-ibzf

Reddit: SCR-20230701-icih

Barusu-rem avatar Jul 01 '23 12:07 Barusu-rem

Seems like you have to actually subscribe to RapidAPI which is a minimum of $500/month for Imgur access

Unfortunatly you seem correct

Imgur: SCR-20230701-ibzf

Reddit: SCR-20230701-icih

You would probably need to use imgurs free end poing https://api.imgur.com/3/image

Barusu-rem avatar Jul 01 '23 12:07 Barusu-rem

@EthanArbuckle Any update on this?

madscientista avatar Jul 08 '23 03:07 madscientista

I've refactored the Imgur API stuff. The readme of this repo now contains instructions for adding Imgur creds

You'll just need the client_id from imgur.com. RapidShare is no longer used.

Note: Imgur is removing all NSFW content from their platform. If you see posts that fail to load in Apollo's feed (even after adding your own Imgur credentials), it's due to Imgur gating their API

EthanArbuckle avatar Jul 09 '23 18:07 EthanArbuckle

@EthanArbuckle Sadly Imgur is still broken. Non-nsfw posts.

madscientista avatar Jul 11 '23 04:07 madscientista

@EthanArbuckle Sadly Imgur is still broken. Non-nsfw posts.

I too am finding that its not working with non-nsfw posts

zeldridge avatar Jul 12 '23 03:07 zeldridge

I also can't get it to work

calania avatar Jul 15 '23 19:07 calania