Can anyone provide a java/python sample of invoke SDP Attachment API?

Can anyone provide a java/python sample of invoke SDP Attachment API?

I try to using SDP Attachment API to add some attachment into request using Java/Python.

But it always failed.

Anyone can help me?

Thank you in advance.

                  New to ADSelfService Plus?