lukasroegner / homebridge-apple-tv-remote

Plugin for controlling Apple TVs in homebridge.
MIT License
132 stars 13 forks source link

How to acquire API Token? #72

Closed holzerseb closed 4 years ago

holzerseb commented 4 years ago

The documentation unfortunately does not state, how one can get the API Token. Is it the same as the 'Credentials' after pairing your Apple TV? From what I understood in the documentation, they are not the same tokens/credentials.

lukasroegner commented 4 years ago

If you want the plugin to expose an HTTP API, you just have to define the API token yourself. If you're not planning to use the HTTP API, just leave it blank.

fahad00x commented 4 years ago

Hi I did not understand how I can write API token .. can you Clarify it please

lukasroegner commented 4 years ago

The API token can be anything you want, is it like a password that you choose.

fahad00x commented 4 years ago

Oh , ok thank you

I have another question please In API http://:

The host IP adress is Apple TV IP or raspberry pi IP?

And the apiPort is the port for raspberry pi ?

fahad00x commented 4 years ago

http:// YOUR-HOST-IP-ADDRESS : apiPort