API for C#

Hello,

I want to use API for C#. I use this documentation here https://wiki.mikrotik.com/wiki/API_in_C_Sharp
When I try to connect, I get an error on Mikrotik: login failure for user api user from via api mikrotik.
Version RouterOS 6.46.6

I heard that the authentication method has changed due to the update, if so how can I fix it?

In the same topic look at “Class with SSL support”, it has new authentication method.

The examples below apply to the method with ssl ?

Better take a look at tik4net => https://github.com/danikf/tik4net

The author is present on the forum => http://forum.mikrotik.com/t/c-api-tik4net-on-github/90879/1