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 🙏

© 2024 – Pkg Stats / Ryan Hefner

mn_api_corpweixin

v2.0.4

Published

Rewquire: moonlight_function_errplace use: npm install moonlight_function_errplace Require: moonlight_function_common use: npm install moonlight_function_common

Downloads

5

Readme

#This is a function from Moonlight ##Prerequisite: Rewquire: moonlight_function_errplace use: npm install moonlight_function_errplace Require: moonlight_function_common use: npm install moonlight_function_common

#Basic Usage ##install npm install moonlight_api_corpweixin --save

##access_token: Usage:

access_token(corpid,corpsecret,function(result_callback){
        ......
};

Callback: access_token.type string. Such as : H6_udam4w2OIG6MSpGlAOfeEvoapcnSQGpaivJuXFpthGaGDcVLKUGdVqgh8g0Z5Vg91owLduXcChxPOscBM0Pp1ee-DX4kqh632FVIj-_DZMxSSJNKrkBL3szcowdWRFioD3OUMamyn5DxPE-wYa_krNVC7msIfo3SSYzmQc0QTZTxnusDyS3VqDwqZm4fGW0C9uuvIg7djAk8b5LrWhQ

##get_user usage:

get_user(access_token,userid,function(user_callback){
    ......
};

Callback:Callback info is from corpweixin. http://work.weixin.qq.com/api/doc#10019 Type format: string

If you want to use a Json format: use

JSON.parse(user_data_callback);

##get_dept_list usage:

get_dept_list(access_token,dept_id,function(dept_list_callback){
    ......
};

http://work.weixin.qq.com/api/doc#10093

##get_dept_user_list

Usage:

get_dept_user_list(access_token,dept_id,fetch_child,function(dept_user_list_callback){
    ......
};

fetch_child: 1 or 0, is mean if enumerate to get the user. http://work.weixin.qq.com/api/doc#10061

##get_dept_user_list_detail

Usage:

get_dept_user_list(access_token,dept_id,fetch_child,function(dept_user_list_callback){
    ......
};

fetch_child: 1 or 0, is mean if enumerate to get the user. http://work.weixin.qq.com/api/doc#10061

##get_userinfo_by_code Usage:

get_userinfo_by_code(access_token,code,function(data_callback){
        console.log(page_name+":the datacallback:"+data_callback)
})

http://work.weixin.qq.com/api/doc#10028#mn_api_corpweixin