Really depends on the license. If its something like the Apache 2 license, then you can do want with code. If its something like the GPL then you need to give back any changes AND your code that uses the GPL code (more or less).
Giving back changes is only required when distributing copies of the software. For most hosted services that never happens; contribution isn't required.
Apparently the wording in GPL2 is a bit vague about hosted services and it can be argued that a hosted service is distribution based on the language used in the license.
GPL3 attempts to make it a bit clearer. AGPL as well.
AGPL is the license that closes the service provider loophole. Normal GPL only applies if you are delivering binaries---providing a service is considered "in-house" use.