This is RealtyFeedSDK for iOS apps.
There are two ways to add the RealtyFeedSDK into your project:
Add the RealtyFeedSDK initialization code to didFinishLaunchingWithOptions. Make sure to import the RealtyFeedSDK header:
import RealtyFeedSDK
RealtyFeedSDK.initial("YOUR-API-KEY", "YOUR-RAPID-API-KEY")
YOUR-API-KEY with your RealtyFeedSDK API Key. YOUR-RAPID-API-KEY with your Rapid API Key.
Now you can call RealtyFeedSDK APIs anywhere of your project,
RealtyFeedSDK.API.instance.getListings(receiver: { data, error in
guard let data = data, let res = String(data: data, encoding: String.Encoding.utf8) else {
print("Failed to load listings!")
return
}
print("Done! \(res)"
})
RealtyFeedSDK.API.instance.getProperty("P_5dba1fb94aa4055b9f29691f",receiver: { data, error in
guard let data = data, let res = String(data: data, encoding: String.Encoding.utf8) else {
print("Failed to load property!")
return
}
print("Done! \(res)"
})
link |
Stars: 4 |
Last commit: 1 year ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics