//-// From {@link PubSub#getSnapshots}://-pubsub.getSnapshots((err,snapshots)=>{// `snapshots` is an array of Snapshot objects.});//-// From {@link PubSub#getSnapshotsStream}://-pubsub.getSnapshotsStream().on('error',console.error).on('data',(snapshot)=>{// `snapshot` is a Snapshot object.});//-// From {@link PubSub#snapshot}://-constsnapshot=pubsub.snapshot('my-snapshot');// snapshot is a Snapshot object.//-// Create a snapshot with {module:pubsub/subscription#createSnapshot}://-constsubscription=pubsub.subscription('my-subscription');subscription.createSnapshot('my-snapshot',(err,snapshot)=>{if(!err){// `snapshot` is a Snapshot object.}});//-// Seek to your snapshot://-constsubscription=pubsub.subscription('my-subscription');subscription.seek('my-snapshot',(err)=>{if(err){// Error handling omitted.}});
constsubscription=pubsub.subscription('my-subscription');constsnapshot=subscription.snapshot('my-snapshot');constcallback=(err,snapshot,apiResponse)=>{if(!err){// The snapshot was created successfully.}};snapshot.create('my-snapshot',callback);//-// If the callback is omitted, we'll return a Promise.//-snapshot.create('my-snapshot').then((data)=>{constsnapshot=data[0];constapiResponse=data[1];});
snapshot.delete((err,apiResponse)=>{});//-// If the callback is omitted, we'll return a Promise.//-snapshot.delete().then((data)=>{constapiResponse=data[0];});
constsubscription=pubsub.subscription('my-subscription');constsnapshot=subscription.snapshot('my-snapshot');snapshot.seek((err,apiResponse)=>{});//-// If the callback is omitted, we'll return a Promise.//-snapshot.seek().then((data)=>{constapiResponse=data[0];});
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-19 UTC."],[],[]]