Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以直接根据微信公众号名称订阅吗?或者有没有通过公众号名称获取公众号ID的方式? #140

Open
javaDreamDeer opened this issue May 15, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@javaDreamDeer
Copy link

目前看源码只有根据文章链接获取公众号ID的方式
async getMpInfo(url: string) {
url = url.trim();
const account = await this.getAvailableAccount();

return this.request
  .post<
    {
      id: string;
      cover: string;
      name: string;
      intro: string;
      updateTime: number;
    }[]
  >(
    `/api/v2/platform/wxs2mp`,
    { url },
    {
      headers: {
        xid: account.id,
        Authorization: `Bearer ${account.token}`,
      },
    },
  )
  .then((res) => res.data);

}

@cooderl cooderl added the help wanted Extra attention is needed label May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants