I haven't seen any changes in the API since the 3.0 tutorials. When 3.1 is out, all C++ tutorials will be checked on compatibilty with 3.1. (and of course altered when required.)
As for the examples in the command reference, Hopefully when changes were made, the API documentation was changed as well.