测试已测试 | ✗ |
Lang语言 | Obj-CObjective C |
许可证 | MIT |
发布了最后发布 | 2016年10月 |
由 Andres Brun 维护。
依赖项 | |
AFNetworking | ~> 3.0 |
AFOAuth2Manager | ~> 3.0 |
由于 SoundCloud 决定不再维护其 API iOS 库,我决定创建自己的一个。目前仅支持一些 API 端点,例如
pod install
。在 Objective-C 中
NSDictionary *params = @{
@"track[title]": @"title",
@"track[permalink]": @"permalink", //must be lowercase
@"track[tag_list]": @"tag", //must be lowercaset
@"triack[sharing]": @"public",
@"track[downloadable]": @YES
};
[[ABMSoundCloudAPISingleton sharedManager].soundCloudPort uploadAudioFile:fileData mimeType:@"audio/mp4" meta:params withSuccess:^(NSDictionary *songDict) {
NSLog(@"success");
} failure:^(NSError *error) {
NSLog(@"error");
}];
在 Swift 3.0 中
let params = ["track[title]": "title", "track[permalink]": "permalink"...]
ABMSoundCloudAPISingleton.sharedManager.uploadAudioFile(fileData, mimeType: "audio/mp4", meta: params, withSuccess: { (songDict) in
print("Success")
}, progress: { (progress) in
print("Progress \(progress.fractionCompleted)")
}) { (error) in
print("Error")
}
AFNetworking
, '~> 3.0'AFOAuth2Manager
, '~> 3.0'此库需要成功连接到 SoundCloud API 并从一个账户中获取
客户端 Id
Secret_key
重定向 URL
Andres Brun Moreno, [email protected]
ABMSoundCloudAPI 可在 MIT 许可证下获得。有关更多信息,请参阅 LICENSE 文件。
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)我会在尽可能快的时间内进行审核 :)