somore publisher api integreation code