How to retrieve user's phone number from WeChat ID? - wechat

may I know if there is a way for me to retrieve a phone number from the WeChat MiniProgram sandbox given a WeChat ID?
WeChat documentation states that https://developers.weixin.qq.com/miniprogram/en/dev/framework/open-ability/getPhoneNumber.html
Calling the wx.login API is required before acquiring the user's mobile number linked to Weixin. As the API for acquiring the mobile number can be initiated only by a user’s trigger, click the [button]((button) component to trigger it rather than directly calling the API. Note: Currently, this API is applicable to non-individual developers, and the Mini Programs which have completed verification (not including overseas entities).
I've also inspected the WeChat MiniProgram's network activity and found a "mobile" field but it's encrypted.

"overseas entities" means company or organization not in china.Maybe your company entity can't use this API.
In common when user click the button with attribute of open-type="getPhoneNumber", you can get a code string at callback function.
Posting the code to server.
The server will take the code and token to get the phonebumber from wechat-offical server.The api path is "https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=ACCESS_TOKEN".
Server docs "https://developers.weixin.qq.com/miniprogram/en/dev/api-backend/open-api/phonenumber/phonenumber.getPhoneNumber.html"
It's samiler as the process of get user's base information

Related

Getting r_fullprofile access to the Linkedin API

I am currently using a linkedin API with r_lightprofile in my application.
Two months ago, I sent a request for access to r_fullprofile using the Partner Program form.
https://business.linkedin.com/marketing-solutions/contact-us
http://prntscr.com/opfnpd
I also sent a request to the Marketing Developer Platform, but the request is still pending (http://prntscr.com/opfvfx)
After all this, I got an email with a form to fill out information about the company.
But after filling out the form, I did not receive an answer that the company is suitable or not suitable for full access.
1) How long does it usually take to get access?
2) Does the linkedin API have support? Email, Live chat or something else?
3) Have I done everything for access? Maybe I missed something?
4) Does Linkedin send an email in case of failure?
It's been a long way for me too, I'll give you some random tips:
Make sure your app is connected to a LinkedIn company page and that the status is Verified. To do this, from the app dashboard, add to the Team members an administrator of the LinkedIn company page (as Admin member) and let him access the app dashboard. He should be able to see a Verify button to confirm the authenticity of the app.
The only support that was really helpful to me was Zendesk.

Telegram bot check if user online

How can I check is user online or not, if I have users chat Id? I tryed bot.userStatus(myChat); but this is wrong.
Telegram Bot APIs don't offer any methods or object's attribute in order to get the user status, whether if he's online or not.
Your chatbot is able to gather user's information as soon as he wrote a message to the chatbot: these informations are the User's object fields as described into the Telegram Bot API documentation.
According to the available fields, user status (online, offline, etc.) unfortunately is not (yet) available.
According to another question posted here, it seems that getting the user status is possible via Telegram API so that creating a Telegram registered application which is not the same thing of using a Telegram Bot.

Google Calendar API Get Events from Other Calendars

I'm extending a PHP application that allows managers to create events and assign specific users to those events. Before the user is listed as available to be assigned, however, I run a check against the user's calendar to see if they are available.
I've already built this once for Exchange using EWS and making use of FindItem method to retrieve events in a given timeframe for a user's email address, but I'm having trouble finding an equivalent in the Google Calendar API.
Both Events and FreeBusy Calls seem to require the specific user's calendarId, which is fine for retrieving the active authenticated manager's Calendar information, but not for their users, of which only the email address is currently available to my system.
Is there a way to retrieve events or a calendarId for a user based on a valid Google email address? (Or is there a better way to get other user's FreeBusy status that I've completely overlooked in my research?)
The Calendar API is a REST API that can be accessed through explicit HTTP calls or via the Google Client Libraries. However, please note that all requests to the Google Calendar API must be authorized by an authenticated user.
User's calendar list can be obtained through HTTP request:
GET https://www.googleapis.com/calendar/v3/users/me/calendarList/calendarId
Code examples for supported programming languages can be found in CalendarList: get.

How can I get linkedin contacts through API and send messages to them?

I had created app that used to get authenticated by users for their contacts, sending messages to those contacts etc. When linked in changed their API access system in May, suddenly our application stopped working.
In the doc there is nothing clearly written about these kind of permissions now or with what kind of membership program I can get access to these again. There is one section where contacts info can be fetched when we apply for partnership program with Apply with LinkedIn button. But I am not sure its of my use.
Access to r_contactinfo permission:
As per the Linkedin website,
The r_contactinfo member permission will now be associated exclusively
with Apply with LinkedIn. As a result, you will only be able to
request this member permission if your application has been approved
by LinkedIn for this particular use.
What you need to do:
Apply for partner status with LinkedIn (Apply with Linkedin), explaining what your integration is and how it works. If it meets their criteria, then you will get access to the above endpoint.
Check this link for further details.

How to create automatic phone call with authentication code

We are to assign a four-digit authentication code to our web users by calling their listed phone number.
It is pretty much like the service of Google Map for business. In their service, if a web user wanted to claim the ownership of a listed store, the user can request a call to the published phone number for that business and obtain the authentication code. With that code correctly entered, Google Map confirms that user account is the owner of that business.
But how did you make it? Can anyone give me some insight?
Twilio Cloud Communications – APIs for Voice, VoIP and Text Messaging
How about this service?

Resources