Jump to content




Logging in and pasteing something with pastebin?


  • You cannot reply to this topic
7 replies to this topic

#1 Geforce Fan

  • Members
  • 846 posts
  • LocationMissouri, United States, America, Earth, Solar System, Milky Way, Universe 42B, Life Street, Multiverse, 4th Dimension

Posted 29 November 2012 - 10:58 AM

How do you login to pastebin then paste something IN computercraft? And how do you edit a paste already made?

#2 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 29 November 2012 - 11:23 AM

I have worked with the Pastebin API that is offered, and unfortunately they do not offer a way to edit pastes witht heir API. However, you can log in and delete pastes, as well as make pastes to your own account.
Take a look at Pastebin's Developer API: http://pastebin.com/api
Alternatively, you can look at how I implemented the login into my SmartPaste program, listed in my signature.

#3 Geforce Fan

  • Members
  • 846 posts
  • LocationMissouri, United States, America, Earth, Solar System, Milky Way, Universe 42B, Life Street, Multiverse, 4th Dimension

Posted 29 November 2012 - 11:28 AM

Well, can I use it to edit pastes?

#4 OmegaVest

  • Members
  • 436 posts

Posted 29 November 2012 - 11:31 AM

View PostCranium, on 29 November 2012 - 11:23 AM, said:

[...] unfortunately they do not offer a way to edit pastes witht heir API. [...]

You'll have to use his program to even try. And I don't think even that works.

#5 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 29 November 2012 - 11:44 AM

View PostHithere__, on 29 November 2012 - 11:28 AM, said:

Well, can I use it to edit pastes?
Like I said. Pastebin does not have anything in their API that allows for editing. The only thing you can do is "trick" the system, by downloading a file, then editing it. After editing, reupload it after deleting the original. I couldn't find a pretty way to do that, so that's why it is not implemented in my program. If you find a nice way to do it, then congratulations.

#6 Geforce Fan

  • Members
  • 846 posts
  • LocationMissouri, United States, America, Earth, Solar System, Milky Way, Universe 42B, Life Street, Multiverse, 4th Dimension

Posted 01 December 2012 - 10:32 AM

But then there's the upload limit...

#7 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 01 December 2012 - 10:36 AM

Upload limit would only cause problems if you edit constantly. You do have a private post limit that you cannot change, but the way that they flag you for ip ban is different.
Take a look at their rules regarding post limits.
As well as how their Spam Filter works.

#8 ChunLing

  • Members
  • 2,027 posts

Posted 02 December 2012 - 01:56 AM

If you're having to edit things so often that you have to consider the upload limit, then respect their terms of use and don't try to abuse their site.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users