M
M
Marat Mkhitaryan2016-03-22 12:59:14
Python
Marat Mkhitaryan, 2016-03-22 12:59:14

What's going on with the VK API?

guys I wrote the simplest code in python

import vk
vkapi = vk.API('5325464',' ','')
vkapi.access_token=s
vkapi.wall.post(message="Hello, world")

using the VK API but when I run the code, the following is displayed in the console
File "/Users/box/Desktop/app/vk.py", line 2
    vkapi = vk.API('5325464','77053264458','Tsiran2017')
    ^
IndentationError: unexpected indent
[Finished in 0.1s with exit code 1]
[shell_cmd: python -u "/Users/box/Desktop/app/vk.py"]
[dir: /Users/box/Desktop/app]
[path: /usr/bin:/bin:/usr/sbin:/sbin]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2016-03-22
@petermzg

You have indents in your python code. After all, the language is built on them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question