A
A
ametko2018-06-14 15:19:58
Python
ametko, 2018-06-14 15:19:58

How to make a post with hashtag using VK api?

When trying to post a post with a hashtag, it returns an authorization error. For authorization, I used a service access key.
5b225d5ba28bc721926422.png5b225ccd61f57152170757.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Ukolov, 2018-06-14
@ametko

You need to urlencode the message.

A
ametko, 2018-06-14
@ametko

For those who came here for the same problem, here is a solution for 3 python.
import urllib.parse
urllib.parse.quote_plus("#hashtag")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question