由于微信企业号的灵活、稳定的特点,很多注重管理的优秀公司在自己的企业管理中都会使用企业微信(原微信企业号)作为自己的管理工具。这就需要自行开发属于自己的个性的应用工具。

那么在企业微信的开发过程中,由于从原有的企业号向企业微信的过渡过程中,有一些接口是发生变化的,这样就导致了很多开发者在参考网上前人代码的时候造成了极大的困惑,这两天,小编就遇到一个这样的坑,相信很多朋友也一定会遇到,那就是非常重要的企业微信的通讯录接口中单独搞出来一个access_token。

小编借鉴前人的代码时候,发现别的接口调试一切OK,可是一到通讯录就出问题,这是怎么回事呢?查阅api才发现,原来因为通讯录信息的特殊性,腾讯单独为通讯录应用生成了一个access_token,而且,通讯录的agentid也固定为了txl。虽然接口一样,但是token是不同的哦。

在企业微信后台的管理工具中可以看到通讯录同步的secret,通过这个secret来生成access_token才是通讯录采用的token呢。

在这个里面还需要重新配置一下回调url。

最后,告诉大家一个通讯录的高级玩法,通过对不同的员工制作不同的推荐页,再绑定相应的邀请二维码的方法,可以实现自动统计分销数据的功能,有兴趣的朋友可以关注“加加笔记”,向我咨询哦!

36 对 “企业微信开发中极易遇到的一个坑”的想法;

  1. Fantastic site. Plenty of useful info here.
    I am sending it to a few friends ans additionally sharing in delicious.
    And obviously, thanks on your effort!

  2. Just desire to say your article is as astonishing.
    The clarity on your publish is just excellent and i could assume you’re a professional on this subject.
    Fine along with your permission allow me to snatch your RSS feed to
    stay up to date with drawing close post. Thanks a million and please carry on the gratifying work.

  3. An impressive share! I have just forwarded this onto a coworker who was conducting a little homework on this.
    And he in fact bought me dinner simply because I found
    it for him… lol. So let me reword this…. Thanks for the meal!!

    But yeah, thanx for spending the time to talk about this matter
    here on your web site.

  4. If you are going for most excellent contents like myself,
    simply go to see this web site everyday since it gives quality contents,
    thanks

  5. I do not know whether it’s just me or if everybody
    else encountering problems with your blog.
    It appears as if some of the text within your content are running off the screen. Can someone else please provide feedback and let me know if this is happening to them as well?
    This may be a problem with my web browser because I’ve had this happen previously.
    Kudos

  6. Today, while I was at work, my cousin stole my iphone and tested to see if it can survive a 40 foot drop, just so she can be a
    youtube sensation. My iPad is now destroyed and she has
    83 views. I know this is entirely off topic but I had to share it with someone!

  7. My partner and I stumbled over here from a different
    page and thought I might as well check things out.
    I like what I see so i am just following you. Look forward to looking into your web page for a second
    time.

  8. Hi, Neat post. There’s a problem together with your website in internet explorer, might check this?

    IE nonetheless is the market leader and a good component of other people will pass over your
    wonderful writing because of this problem.

  9. Pretty nice post. I just stumbled upon your weblog and wished
    to say that I have really enjoyed browsing your blog posts.
    After all I will be subscribing on your feed and I’m
    hoping you write once more soon!

  10. A person necessarily help to make critically articles I would state.
    This is the first time I frequented your web page and up to now?
    I amazed with the analysis you made to create this
    particular submit amazing. Fantastic task!

  11. I know this if off topic but I’m looking into starting my own blog and was
    curious what all is required to get setup? I’m assuming having a blog like yours would cost a pretty penny?

    I’m not very web smart so I’m not 100% sure. Any tips
    or advice would be greatly appreciated. Many thanks

  12. I have been exploring for a little for any high quality articles or
    weblog posts in this kind of area . Exploring in Yahoo I eventually stumbled upon this web site.
    Reading this information So i am satisfied to show that I’ve a very good uncanny feeling
    I discovered just what I needed. I most certainly will make sure to
    don?t omit this site and give it a look on a constant basis.

  13. Hello! This is kind of off topic but I need some advice from an established blog.
    Is it tough to set up your own blog? I’m not very techincal but I
    can figure things out pretty fast. I’m thinking about creating my own but I’m not sure where to start.
    Do you have any tips or suggestions? With thanks

  14. Thanks , I’ve just been looking for information approximately this topic for a long
    time and yours is the best I’ve found out so far.
    However, what about the bottom line? Are you certain about the source?

  15. Hmm is anyone else having problems with the pictures on this
    blog loading? I’m trying to determine if its a problem on my end or if it’s the blog.
    Any suggestions would be greatly appreciated.

发表评论

电子邮件地址不会被公开。 必填项已用*标注