npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

mysalesguide3-presentation-api

v1.0.0

Published

This is the official repository for the `mySALESGUIDE3` presentation API. It provides an JavaScript-API to access functionalities and/or data of the `mySALESGUIDE3` app. This API only works inside of a `mySALESGUIDE3` presentation.

Readme

mySALESGUIDE3 Presentation API

This is the official repository for the mySALESGUIDE3 presentation API. It provides an JavaScript-API to access functionalities and/or data of the mySALESGUIDE3 app. This API only works inside of a mySALESGUIDE3 presentation.

If you want to know more about mySALESGUIDE3 please visit http://www.my-salesguide.com and contact us.

Create a mySALESGUIDE3 Presentation

A mySALESGUIDE3 presentation is just a ZIP-file with HTML sources. You can including CSS, JS, images, fonts, etc. by using relative paths. Note not all ZIP-files are treated as presentation. To be a valid presentation-ZIP it needs following requirements.

  • manifest.json file exists in ZIP (can be empty)
  • index.html file exists in ZIP (this is the start point of the presentation)

Common errors:

  • Folder containing files is zipped instead of files itself (manifest.json and index.html are not on the root directory of the ZIP). Backend detects ZIP as normal ZIP and not as presentation.

Use the Presentation API

Just include the file src/api.js in your presentation, and you are ready to go. For examples see the examples/ directory.

Usage Examples

Properties

  • mySalesGuide3Api.version
  • mySalesGuide3Api.CRM_TYPE_CONTACTS
  • mySalesGuide3Api.CRM_TYPE_COMPANIES
  • mySalesGuide3Api.ERROR_API_NOT_AVAILABLE
  • mySalesGuide3Api.ERROR_BASE64_OPEN_URL_ONLY_NATIVE
  • mySalesGuide3Api.ERROR_SHORTLINK_OPEN_URL_ONLY_NATIVE
  • mySalesGuide3Api.ERROR_SHORTLINK_OPEN_URL_NO_BROWSER
  • mySalesGuide3Api.ERROR_INVALID_CRM_TYPE

Methods

isAvailable

mySalesGuide3Api.isAvailable(function(isAvailable){
    if(isAvailable){
        console.log('API available. :)');
    } else {
        console.error('API not available. :(');
    }
});

openShortlink

var error_handler = function(error_message, error_code){
    console.error('Error '+error_code+': '+error_message);
};
mySalesGuide3Api.openShortlink(function(){
    console.log('App navigated to url of link, folder or opened the file.');
}, error_handler, "/filemanager/filemanager::236a412c721");
  
// jump to file and close presentation
mySalesGuide3Api.openShortlink(null, error_handler, "/filemanager/filemanager::236a412c721", true);

getUser

mySalesGuide3Api.getUser(function(user){
    console.log(user);
    // {"firstname": "Lukas", "_id": "user::2178624178", ...}
}, error_handler);

openPopup

mySalesGuide3Api.openPopup(function(){
    console.log('Window opened. :)');
}, error_handler, 'http://www.google.com', 'Google');

openBrowser

mySalesGuide3Api.openBrowser(function(){
    console.log('Window opened. :)');
}, error_handler, 'http://www.google.com');

selectCrm

mySalesGuide3Api.selectCrm(function(contact){
    console.log(contact);
    // {"firstname": "Max", "_id": "crm_contacts::2178624178", ...}
    // null (on user aborted)
}, error_handler, 'crm_contacts');
  
mySalesGuide3Api.selectCrm(function(contactOrCompany){
    console.log(contactOrCompany);
    // {"firstname": "Max", "_id": "crm_company::2178624178", ...}
    // null (on user aborted)
}, error_handler, null);

saveCrmFile

mySalesGuide3Api.saveCrmFile(function(){
    console.log('Contact/company saved.');
}, error_handler, 'crm_contacts::124224242', 'http://lorempixel.com/64/64', 'Testbild', 'image/png');
  
mySalesGuide3Api.saveCrmFile(function(){
    console.log('Contact/company saved.');
}, error_handler, 'crm_company::124224242', 'data:text/plain;base64,SGVsbG8gV29ybGQh', 'Testnotiz.txt', 'text/plain');

saveCrmNote


mySalesGuide3Api.saveCrmNote(function(){
    console.log('Note saved.');
}, error_handler, 'crm_company::124224242', 'Dies ist eine normale Notiz mit Reminder!', false, null, new Date('2019-12-31'));
  
mySalesGuide3Api.saveCrmNote(function(){
    console.log('Note saved.');
}, error_handler, 'crm_company::124224242', 'Dies ist eine erledigte Notiz mit Deadline!', true, new Date('2017-12-31'));

storeCustomData

mySalesGuide3Api.storeCustomData(function(){
    console.log('Saved :)');
}, error_handler, "my_data_1", "key123", false, {foo:"bar"});

getCustomData

mySalesGuide3Api.getCustomData(function(data){
    console.log(data);
}, error_handler, "my_data_1", "key123", false);

listCustomData

mySalesGuide3Api.listCustomData(function(list){
    console.log(list);
}, error_handler, "my_data_1");