Skip to content

Generate a signature in node.js for Google Maps API for Business

Notifications You must be signed in to change notification settings

jcnade/node-google-signature

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-google-signature

Generate a HMAC-SHA1 signature for "Google Maps API for Business" in node.js

Build Status

Generate a signature from a private key and a string:

 var signature = require('node-google-signature');

 var key    = '-2qtbstr8='       // safe for the web modified base64 format
 var string = '/maps/api/etc..'  // The URL string to sign

 signature.generate(key, string, function(hash){
        console.log(hash) // { signature : 'me50L1BneaefWlbvb_XpsaIclo' }
 })

URL Signing Debugger

https://m4b-url-signer.appspot.com/

About

Generate a signature in node.js for Google Maps API for Business

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published