The opt-in page mentions that Advanced users can use a series of on-chain transactions which can be prepared manually and issued on the NEM NIS1 blockchain programmatically
.
Are there any examples published?
Sorry for late replay. Those programmatically opt-in is reserved mostly for exchanges. I know you are developer but if you have couple accounts better is use wallet