Skip to content

Instantly share code, notes, and snippets.

Request : https://ec1.api.travelsify.ai/v1/clients/iamplus/users/anonymous/hotels
/products?product-ids= 8655,A152,A5C0,A5D3,A5G8,5993&similar-to-product-id=1295
Response :
{
"_embedded": {
"products": [
{
"_links": {
"self": {
Request : https://ec1.api.travelsify.ai/v1/clients/iamplus/
users/anonymous/hotels/products?similar-to-product-id=1295&country-id=sg&city-id=singapore
Response :
{
"_embedded": {
"products": [
{
"_links": {
"self": {
Request : https://ec1.api.travelsify.ai/v1/clients/iamplus/users/anonymous/hotels/
products?product-ids=A5D5,0663,1295,7326,A064,2789,1296,0785,9685,2897,1399,A013,0751,9104,1937,9375,B625,B792,6950,1614,1914,0981,B793,9688,2217,1610
&similar-to-product-id=3704877
Response :
{
"_embedded": {
"products": [
{
"_links": {
Request :https://ec1.api.travelsify.ai/v1/clients/iamplus
/users/anonymous/hotels/products?similar-to-product-id=3704877&country-id=fr&city-id=paris
Response :
{
"_embedded": {
"products": [
{
"_links": {
"self": {
@skparticles
skparticles / Use Case 2: Mood Mach Request and Response
Last active February 26, 2020 11:31
Mood Mach Request/Response
Request :https://ec1.api.travelsify.ai/v1/clients/iamplus/
users/anonymous/hotels/products?product-ids=0937,9919,A578&tag-ids=nightlife,spacious,views,contemporary
Response
{
"_embedded": {
"products": [
{
"_links": {
"self": {
"href": "/v1/clients/iamplus/users/anonymous/hotels/products/0937"
@skparticles
skparticles / hotel.json
Created January 6, 2020 04:34
Hotel Details from Accor
{
"amenities": [
{
"code": "GECOCERT",
"label": "Sustainably certified",
"detail": [
"PLANET 21 Gold"
],
"freeService": true
},
Incident Identifier: 41E92AC5-F703-46BD-B9BF-AC3F79D0D5DA
CrashReporter Key: 64C9DA60-9E15-52BD-8686-69E3136E9B3E
Hardware Model: MacBookPro12,1
Process: Buildbox [98688]
Path:
Identifier: com.eightcell.buildbox
Version: 3.0.0.3105 (3.0.0.3105)
Code Type: X86-64
Parent Process: launchd [1]
#import "AdIntegrator.h"
#import <HeyzapAds/HeyzapAds.h>
/**
1. Include Interface to hold banner reference
*/
@interface AdIntegrator()
@property(nonatomic,weak)HZBannerAd *banner;
@end
@implementation AdIntegrator
+ (id)shared{
// Replace this to show / remove banner in BB3 Game.
-(void)showBanner{
UIView *view = [UIApplication sharedApplication].keyWindow.rootViewController.view;
if(!self.bannerView)
{
self.bottomLayoutGuide = [UIApplication sharedApplication].keyWindow.rootViewController.bottomLayoutGuide;
self.bannerView = [[GADBannerView alloc]
initWithAdSize:kGADAdSizeBanner];
self.bannerView.translatesAutoresizingMaskIntoConstraints = NO;
@skparticles
skparticles / easing.js
Created December 16, 2018 20:56 — forked from gre/easing.js
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity