Giter Site home page Giter Site logo

google-form's Introduction

Meraki Dashboard with Google Scripts & Forms

Overview

This learning lab demonstrates the power of Meraki APIs with Google Scripts and Forms.

By building a simple Google Form and attaching a script written in JavaScript, a Meraki Dashboard administrator can easily be created. This is incredibly helpful when running workshops that require several administrators to have access to a lab network.

Instructions

Create a Google Form

https://forms.google.com

The first two questions should be as follows:

  • Email
  • Name

[SAMPLE]

Form

Link the form to a Google Script

Google Scripts Menu

Paste the contents of this repository's example-registerMerakiAdmin-form.gs file into the Google Scripts IDE.

Google Scripts IDE

Add a Trigger to launch the script when the Form is submitted.

Triggers Menu

Configure the trigger

  • Run: onFormSubmit
  • Events: From form
  • --> On form submit

Triggers

Test the API calls

Several additional functions are included in this code to allow you to test with sample data and collect information.

  • Run --> Select a test function

Run Menu

Feel free to modify the sample JSON data defined in the testAddMerakiAdmin function.

function testAddMerakiAdmin(){
  var data = {
    "name":"Google Scripts Demo",
    "email":"[email protected]", // change this to an email you have access to!
    "orgAccess":"full"
  };
  addMerakiAdmin(API_KEY,ORG_ID,SHARD,data);
}

View the results

  • View --> Logs

Logs Menu

Logs

Google Form

Now that the API calls are working, test the Google Form by hitting the preview button.

Logs

Complete the form with a valid email address.

Logs

If everything worked, you should get an email from Meraki asking to complete the admin account verification.

Logs Menu

Verify Meraki account is created

  • Meraki Dashboard --> Organization --> Administrators

Admin Users

SUCCESS!

You have now used the Meraki APIs to dynamically create Meraki administrator accounts. With Google Apps, you do not even need to host a server to run the application. Cool!

Meraki API Resources

http://developers.meraki.com/

google-form's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.