better-pastebin icon indicating copy to clipboard operation
better-pastebin copied to clipboard

'edit' functionality not working

Open austen0 opened this issue 7 years ago • 1 comments

edit seems to be broken. It's returning success, but the specified paste is not actually modified. I've created and read a paste from within the callback which confirmed the dev key and login credentials are valid.

var paste = require('better-pastebin');
paste.setDevKey('***');
paste.login('***', '***', function(success, data) {
  if(!success) {
    console.log('Login Failed (' + data + ')');
      return false;
  }

  paste.edit('***', 'i am editing this',  function(success, data) {
    if(!success) {
      console.log('Edit Failed (' + data + ')');
    } else {
      console.log('Edit Succeeded (' + data + ')');
    }
  });
});

austen0 avatar Apr 05 '18 21:04 austen0

can confirm EDIT is not working as intended

scottie avatar Feb 01 '19 00:02 scottie