Jump to content




Uploading To Pastebin On Your Account

help

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

#1 oedze

  • Members
  • 40 posts

Posted 22 July 2013 - 01:10 PM

he everybody

i got a question about uploading stuf to pastebin with pastebin put [filename]

i saw in the program you can change the api_development_key, but i change it to my key, it doest work
the question is, if this is blocked, or something else is happening, can someone explain it, it would be great if i can upload to my own account on pastebin.

-oedze

#2 Thib0704

  • Members
  • 93 posts
  • LocationgetServer().getPlayer("Thib0704").getLocation();

Posted 22 July 2013 - 01:14 PM

Are you trying to edit it ingame ?
If yes then you must know that all rom programs are unable to be changed ingame
To fix it just "cp /rom/programs/http/pastebin /pastebin"
and then "edit /pastebin"
and do what you need to do.
if no can you please send us your code.

#3 Grim Reaper

  • Members
  • 503 posts
  • LocationSeattle, WA

Posted 22 July 2013 - 01:16 PM

Look into http://pastebin.com/api.

Also, Cranium wrote a program a while ago which allows you to do this. I wrote my own streamline client for personal use, if you want to see that code.

#4 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 22 July 2013 - 01:22 PM

Changing the developer key does not change which account it goes to, it simply identifies the developer.
Take a look at the rest of the Pastebin API, specifically about the unique user ID once logged in.
If you want to look into how to post to your own pastebin account, take a look at the program SmartPaste in my signature. I've set it up so you can upload and download programs to/from your account. There is a login() function you can take a look at, which should help you figure out how to obtain such a login key.

EDIT: Too slow, thanks for the mention, Grim Reaper!

Edited by Cranium, 22 July 2013 - 01:23 PM.


#5 oedze

  • Members
  • 40 posts

Posted 22 July 2013 - 02:13 PM

thanks for al your replies, i will check what you send me

#6 oedze

  • Members
  • 40 posts

Posted 22 July 2013 - 02:31 PM

thanks for your quick answers, i can really use them, i will just use your program cranium :)

thanks
-oedze





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users