pastebin

Making a simple POST request with the pastebin API

北城余情 提交于 2021-02-10 15:57:59
问题 I was wondering how I would be able to make a post request to pastebin.com. They have an easy to understand API documentation, but whenever I run a simple POST request I always get Bad API request, invalid api_option . I'm using the bear minimum required to make the request, I'm not sure what I could be doing wrong. var request = new XMLHttpRequest; request.open("POST", "https://pastebin.com/api/api_post.php?api_dev_key=mykey&api_option=paste&api_paste_code=hi", false); request.send();

Pastebin API Paste Data

送分小仙女□ 提交于 2020-05-14 02:29:24
问题 I've been trying to get the pastebin API to instead of telling me the pastebin link , just output the raw data. The PHP code is this : <?php $api_dev_key = 'Stackoverflow(fake key)'; $api_paste_code = 'API.'; // your paste text $api_paste_private = '1'; // 0=public 1=unlisted 2=private $api_paste_expire_date = 'N'; $api_paste_format = 'php'; $api_paste_code = urlencode($api_paste_code); $url = 'http://pastebin.com/api/api_post.php'; $ch = curl_init($url); ?> Normally this would upload the

create pastes inside folder with pastebin.com api?

*爱你&永不变心* 提交于 2020-02-07 03:56:09
问题 after creating a folder on pastebin.com, how do i upload pastes to that folder with the api? i couldn't really find any mention of folders in the API documentation at https://pastebin.com/api (in fact, the word folder does not appear in the the documentation at all, running curl 'https://pastebin.com/api' -s | grep -i folder | wc -l returns 0), i want to do it with php + the curl_ api if that's significant (but i doubt it is) 回答1: this is obviously not a good solution, but it was the only one

Problems importing external CSS files on Codepen.io

穿精又带淫゛_ 提交于 2020-01-14 13:42:12
问题 I love working with Codepen and I'm trying to import a css file from Pastebin. Here is a link to my external file hosted on Pastebin: http://pastebin.com/raw.php?i=mj9dmzZw and inside that file I link to my actual font files. I'm not sure what I'm doing wrong. Could anyone point me in the right direction or let me know if this is even possible. Here is the actual codepen. http://codepen.io/ryanjgill/pen/CLitH Inside the CSS section I have commented out the styling that I'm trying to include

Problems importing external CSS files on Codepen.io

懵懂的女人 提交于 2020-01-14 13:41:46
问题 I love working with Codepen and I'm trying to import a css file from Pastebin. Here is a link to my external file hosted on Pastebin: http://pastebin.com/raw.php?i=mj9dmzZw and inside that file I link to my actual font files. I'm not sure what I'm doing wrong. Could anyone point me in the right direction or let me know if this is even possible. Here is the actual codepen. http://codepen.io/ryanjgill/pen/CLitH Inside the CSS section I have commented out the styling that I'm trying to include

Edit an existing Pastebin document via API

浪子不回头ぞ 提交于 2019-12-24 14:27:24
问题 I am trying to write a function in LUA to edit my pastebin code. I can use this code to make a HTTP post: http.post(string url, string postData [, table headers]) I can also use this code for a HTTP get: http.get(string url [, table headers]) on the Pastebin website https://pastebin.com/api are information about using the API. I am not sure, if this website can help me to solve my problem. Does someone know how to fill the headers table? this is the program i tried: headers = {} headers["api

JQuery Ajax request to http://pastebin.com/raw.php

有些话、适合烂在心里 提交于 2019-12-11 06:33:28
问题 I try to make a JQuery ajax request to 'http://pastebin.com/raw.php' and using this code: $.ajax({ url: 'http://pastebin.com/raw.php', data: "i=VJ29uFnk", complete: function(jqXHR, textStatus) { alert('complete'); }, success: function(data) { alert(data); }, error: function(xhr, status, error) { alert('noh!') } }); With this I get a status '404' within xhr but the url I can see in firebug looks correct: http://pastebin.com/raw.php?i=VJ29uFnk Ideas? 回答1: XHR calls are protected under the Same

Is there an Open Source pastebin? [closed]

爱⌒轻易说出口 提交于 2019-12-03 04:41:10
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Frequently I write wiki pages or set up configuration files that I need to share with other developers. Are there any pastebin clones out there that you can install in your own network and if not? how do you manage code snippets or configurations you wish to share with other developers in your company where

Is there an internal alternative to gist.github.com to run behind a firewall?

陌路散爱 提交于 2019-12-03 02:18:33
问题 gist.github.com is incredibly handy, but I'd like to be able run something similar for sharing code samples internally with other developers behind the firewall where I work, so I don't constantly need to be sanitising my code all the time, just to talk about code examples. Does anything like this exist? I'm not after big project management tools, just a way to make throwaway gists, and share links easily, that also happen to be git repos, just like gist.github.com 回答1: You may check pastgit:

Is there an Open Source pastebin? [closed]

二次信任 提交于 2019-12-02 17:09:15
Frequently I write wiki pages or set up configuration files that I need to share with other developers. Are there any pastebin clones out there that you can install in your own network and if not? how do you manage code snippets or configurations you wish to share with other developers in your company where source control may be overkill? utdemir There is stikked. A simple and powerfull open-source pastebin, using PHP. You can check it at "stikked.com" and you can download the source from http://code.google.com/p/stikked . There's a bugfixed/improved version: https://github.com/claudehohl