Skip to main content

Upload file into box without manual interaction using c#.net

  • September 5, 2023
  • 1 reply
  • 367 views

I need to upload file into box without manual interaction using c#.net.
As per the SDK, I need to pass access token & refresh token.
How can I get Access token & refresh token from C#.net using client id & client secret without manual interaction.
Thanks.

1 reply

smartoneinok Box
Forum|alt.badge.img
  • Senior Developer Advocate
  • September 5, 2023

Hello 👋

You can create a client using the .NET SDK and CCG. Here is a code snippet of doing this.

You can then use the upload method.

Thanks,
Alex, Box Developer Advocate 🥑