Code Monkey home page Code Monkey logo

Comments (6)

andrewicarlson avatar andrewicarlson commented on May 18, 2024

As far as I can tell you can't pass the subreddit through a Reddit share because Reddit validates the subreddit before the submission process. I'll write something for passing the title and text later today.

from rrssb.

dbox avatar dbox commented on May 18, 2024

Thats up

from rrssb.

deronsizemore avatar deronsizemore commented on May 18, 2024

Thank you!

from rrssb.

deronsizemore avatar deronsizemore commented on May 18, 2024

Thanks again for this. I'm finally getting around to messing with this. I noticed that I mistyped my question initially. When sharing a link on Reddit, it doesn't really make sense to share a "body" as at that point, you're no longer sharing a link and it becomes a self post. Is there a way to pass in a URL in the reddit share button? Also, regarding passing the subreddit, I noticed on their api page: http://www.reddit.com/dev/api#POST_api_submit they have a way to pass the subreddit. I was wondering if this would allow you to add this functionality?

Thanks

from rrssb.

AdamPS avatar AdamPS commented on May 18, 2024

So if we can't have both text and url (and we should test this I guess), it looks like there is an action to remove the text parameter from both V1 and V2. Also, in that latest API, the URL is slightly different ("/api/submit") and it suggests there should be a kind parameter. I don't have an account to test.

Regarding subreddit - it would be easy to pass it, but how to decide what value to pass? In index.html is could only be an example.

from rrssb.

deronsizemore avatar deronsizemore commented on May 18, 2024

Sorry for my delayed response here.

it suggests there should be a kind parameter. I don't have an account to test.

What is a "kind parameter?" Also, I have an account and can test things if you needed me to?

Regarding subreddit - it would be easy to pass it, but how to decide what value to pass?

I assume it would just be hard coded? For me, I'd need to only every submit to a single subreddit which will never change.

from rrssb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.