@blitzreels/sdk 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -107,6 +107,31 @@ await client.media.folders.create({
107
107
  iconType: "video",
108
108
  });
109
109
 
110
+ const audioResults = await client.audioLibrary.search({
111
+ query: "ambient riser",
112
+ provider: "all",
113
+ license: "cc0",
114
+ audioType: "sound_effect",
115
+ minDurationSeconds: undefined,
116
+ maxDurationSeconds: 12,
117
+ limit: 10,
118
+ page: undefined,
119
+ });
120
+
121
+ await client.audioLibrary.importAsset({
122
+ provider: audioResults.items[0].provider,
123
+ externalId: audioResults.items[0].external_id,
124
+ folderId: undefined,
125
+ projectId: "project_id",
126
+ startSeconds: 0,
127
+ durationSeconds: 12,
128
+ volume: 0.5,
129
+ fadeInSeconds: undefined,
130
+ fadeOutSeconds: undefined,
131
+ loop: true,
132
+ audioType: "sound_effect",
133
+ });
134
+
110
135
  const project = await client.projects.inspect({
111
136
  projectId: "project_id",
112
137
  mode: "full",