You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constclient=newPasteClient("DEV_API_KEY");consttoken=awaitclient.login({name: "user_name",password: "user_password"});// This is the user token that can be used to get all the user's pastes or delete oneconsole.log(token);
constclient=newPasteClient("DEV_API_KEY");// Login to get the tokenconsttoken=awaitclient.login({name: "user_name",password: "user_password"});// Get a limit of 1000 pastes from the userconstpastes=awaitclient.getPastesByUser({userKey: token,limit: 100,// Min: 1, Max: 1000});// An array of pastesconsole.log(pastes);
constclient=newPasteClient("DEV_API_KEY");// Login to get the tokenconsttoken=awaitclient.login({name: "user_name",password: "user_password"});// Will return a boolean if deletedconstdeleted=awaitclient.deletePasteByKey({userKey: token,pasteKey: "paste-key-here",});//=> `true` or `false`console.log(deleted);
constclient=newPasteClient("DEV_API_KEY");// Login to get the tokenconsttoken=awaitclient.login({name: "user_name",password: "user_password"});constdata=awaitclient.getRawPasteByKey({pasteKey: "paste-key-here",userKey: token,});//=> raw paste stringconsole.log(data);