First impulse: "That sounds like a great way to get your GA account banned for using their API in undocumented ways."
So I think it's a totally legit way to use GA, since you don't always have the ability to add libraries. For example if you want to track GA server side.