oblige (one) by (doing something)
To make one indebted by doing something for them or on their behalf; to do something that accommodates one. You're under no circumstances required to oblige your employers by giving up your legal rights in this case. I was wondering if you would oblige me by picking up a parcel for me from the post office.
oblige someone by something
to accommodate someone by doing something. Please oblige me by closing the window. Would you oblige me by accompanying me to the dance?