@@ -180,3 +180,58 @@ dotnet run -- AssetUsage
180180Methods Used:
181181* CreateAssetUsage(AssetUsageQuery)
182182* DeleteAssetUsage(AssetUsageQuery)
183+
184+ ## Running Sample Files Using Docker
185+
186+ If you want to avoid .NET version compatibility issues or simplify the setup process, you can use Docker to run the sample files.
187+
188+ ### Prerequisites
189+
190+ - [ Docker] ( https://www.docker.com/get-started ) installed on your machine
191+ - [ Docker Compose] ( https://docs.docker.com/compose/install/ ) installed on your machine
192+
193+ ### Setting up Docker Environment
194+
195+ ##### 1. Create a ` Config.json ` file in the repository root with your Bynder credentials:
196+
197+ ``` json
198+ {
199+ "base_url" : " https://example.bynder.com" ,
200+ "client_id" : " your oauth app client id" ,
201+ "client_secret" : " your oauth app client secret" ,
202+ "redirect_uri" : " your oauth app redirect uri" ,
203+ "scopes" : " offline asset:read asset:write collection:read collection:write asset.usage:read asset.usage:write meta.assetbank:read meta.assetbank:write meta.workflow:read"
204+ }
205+ ```
206+
207+ ##### 2. Start the Docker container:
208+
209+ ` make run-docker `
210+
211+ ##### 3. Run any sample using the make command:
212+
213+ ` make executeSdkSample sample-name=BrandsSample `
214+
215+ Available sample names:
216+
217+ * BrandsSample
218+ * MetapropertiesSample
219+ * MetapropertyToMediaSample
220+ * MediaSample
221+ * FindMediaSample
222+ * ModifyMediaSample
223+ * CollectionsSample
224+ * TagsSample
225+ * UploadSample
226+ * AssetUsageSample
227+
228+ ##### 4. When you're done, stop the Docker container:
229+ ` make stop-docker `
230+
231+ If you make changes to the code, you can rebuild the project within the container:
232+
233+ ` make rebuild-project `
234+
235+ Or rebuild the entire container if needed:
236+
237+ ` make rebuild-container `
0 commit comments