Api2 access problem

As a long term forrum member you should be aware for the FAQ - Manager Forum
Specifically:

Be specific. Do not just tell us a feature does not work. Explain what you have done and why you think there is an issue. If your question relates to an apparent software problem (rather than an accounting topic), tell us your operating system (including the version), Manager edition (desktop, server, or cloud), and exactly what you think is wrong. If possible, post screen shots illustrating the problem.

It is impossible to provide help when just say something does not work without the details needed.