Develop With Blog

A blog about building.

1 post(s), index »

Community Forum
Learn how this blog was built
mydigitalstructure/js; new .cloud namespace
mark.byers

We have made an adjustment to the mydigitalstructure/js namespace* so that it now supports a .cloud namespace to help with understanding where the method is being invoked, data stored etc

The .cloud methods are aliasing of existing SDK methods so all existing can still be used with no code change.

So going forward:

1. We have mydigitalstructure. which refers to methods that are being invoked in the client/browser space.
2. And then mydigitalstructure.cloud. for methods being invoked on the cloud.

The mydigitalstructure.cloud methods include:

  • .auth() - authenticate onto mydigitalstructure.cloud
  • .deauth() - deauthenticate off the mydigitalstructure.cloud
  • .save({object: }) - which consolidates mydigitalstructure.create() / .update()
  • .retrieve({object: }) - same as mydigitalstructure.retrieve()
  • .delete({object: }) - same as mydigitalstructure.delete()
  • .invoke({method: }) - runs a method that doesn't relate to a data object, such as such eg sending a password reset
  • .upload() - upload a file to the cloud

eg to save data onto the cloud use mydigitalstructure.cloud.save()

https://learn.mydigitalstructure.cloud/site/1788/mydigitalstructure-3.3.3.js

Previous | Next