请问获取手机号phonenumber.getPhoneNumber,不能直接调用官方提供的接口吗?

小程序 文章 2022-03-03 12:00 538 0 全屏看文

AI助手支持GPT4.0

请问获取手机号phonenumber.getPhoneNumber,不能直接调用官方提供的接口吗?Can I directly call the official interface to get the phone number phonenumber.getPhoneNumber?

请问获取手机号phonenumber.getPhoneNumber,不能直接调用官方提供的接口吗?

请问是不能直接从前端请求这个接口吗?还是需要在本地开启后台服务器,然后前端去调用这个接口,因为已经试了好多次,一直报错

Can't I request this interface directly from the front end? You still need to start the background server locally, and then the front end calls this interface, because you have tried many times and have been reporting errors

回答:

小黎:

服务端调用才可以

VBit:

只能服务端调用,且➕必要参数

brave:

1、只能后端调用微信服务端接口

2、access_token 拼接在 url 上的

-EOF-

AI助手支持GPT4.0