iserbkin, on 07 October 2013 - 02:08 AM, said:
Hello!
i'm kinda confused about documentation here.
In documentation getInvName() but in game it is getInventoryName().

Also getSizeInventory() but ingame getInventorySize().
Where i can fint the link to the correct documentation...?

I'm going to go ahead and assume that you're using a 1.6.x build of OpenPeripheral, all the method names went through a massive rename process to make it easier for "you" the developer to understand what they do better. As of yet there is no official documentation for these methods (that I know of), however you can do the following in-game
1. Turn on the computer
2. Make sure the peripheral is attached to the computer directly or via a network cable (and the modem is on)
3. Open the Lua prompt by typing
lua
4. Type the following and press enter
peripheral.call("name", "listMethods") replacing name for the side, or remote name (appears in chat) of the peripheral.
You will now have a list of all the methods on the peripheral. If you get a "no such method" then it is not a peripheral that OpenPeripheral interfaces with, but instead a Vanilla ComputerCraft peripheral.
Alternatively you can also do the following
local per = peripheral.wrap("name")
for k,v in pairs(per) do
print(k, ' = ', v)
end