EthanArbuckle / Apollo-CustomApiCredentials

Tweak to use your own reddit API credentials in Apollo
GNU General Public License v3.0
769 stars 142 forks source link

How to use the Imgur API? #11

Closed fmunim closed 1 year ago

fmunim commented 1 year ago

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!

Barusu-rem commented 1 year ago

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 commented 1 year ago

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).

fmunim commented 1 year ago

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

Rihcus commented 1 year ago

@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?

fmunim commented 1 year ago

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

FlipABit commented 1 year ago

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

Barusu-rem commented 1 year ago

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 commented 1 year ago

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

fmunim commented 1 year ago

@EthanArbuckle Any update on this?

EthanArbuckle commented 1 year ago

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

fmunim commented 1 year ago

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

zeldridge commented 1 year ago

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

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

calania commented 1 year ago

I also can't get it to work