->param('code','',function()use($types){returnnewWhiteList(array_keys($types['credit-cards']));},'Credit Card Code. Possible values: '.implode(', ',array_keys($types['credit-cards'])).'.')
->param('width',100,function(){returnnewRange(0,2000);},'Image width. Pass an integer between 0 to 2000. Defaults to 100',true)
->param('height',100,function(){returnnewRange(0,2000);},'Image height. Pass an integer between 0 to 2000. Defaults to 100',true)
->param('quality',100,function(){returnnewRange(0,100);},'Image quality. Pass an integer between 0 to 100. Defaults to 100',true)
->label('scope','avatars.read')
->label('sdk.namespace','avatars')
->label('sdk.method','getCreditCard')
->label('sdk.description','Need to display your users with your billing method or there payment methods? The credit card endpoint will return you the icon of the credit card provider you need. Use width, height and quality arguments to change the output settings.')
->param('width',100,function(){returnnewRange(0,2000);},'Image width. Pass an integer between 0 to 2000. Defaults to 100',true)
->param('height',100,function(){returnnewRange(0,2000);},'Image height. Pass an integer between 0 to 2000. Defaults to 100',true)
->param('quality',100,function(){returnnewRange(0,100);},'Image quality. Pass an integer between 0 to 100. Defaults to 100',true)
->label('scope','avatars.read')
->label('sdk.namespace','avatars')
->label('sdk.method','getBrowser')
->label('sdk.description','You can use this endpoint to show different browser icons to your users, The code argument receives the browser code as appear in your user /account/sessions endpoint. Use width, height and quality arguments to change the output settings.')
->param('code','',function()use($types){returnnewWhiteList(array_keys($types['flags']));},'Country Code. ISO Alpha-2 country code format.')
->param('width',100,function(){returnnewRange(0,2000);},'Image width. Pass an integer between 0 to 2000. Defaults to 100',true)
->param('height',100,function(){returnnewRange(0,2000);},'Image height. Pass an integer between 0 to 2000. Defaults to 100',true)
->param('quality',100,function(){returnnewRange(0,100);},'Image quality. Pass an integer between 0 to 100. Defaults to 100',true)
->label('scope','avatars.read')
->label('sdk.namespace','avatars')
->label('sdk.method','getFlag')
->label('sdk.description','You can use this endpoint to show different country flags icons to your users, The code argument receives the a 2 letter country code. Use width, height and quality arguments to change the output settings.')
->label('sdk.description','Use this endpoint to fetch a remote image URL and crop it to any image size you want. This endpoint is very useful if you need to crop a remote image or in cases, you want to make sure a 3rd party image is properly served using a TLS protocol.')
->param('text','',function(){returnnewText(512);},'Plain text to be converted to QR code image')
->param('size',400,function(){returnnewRange(0,1000);},'QR code size. Pass an integer between 0 to 1000. Defaults to 400.',true)
->param('margin',1,function(){returnnewRange(0,10);},'Margin From Edge. Pass an integer between 0 to 10. Defaults to 1.',true)
->param('download',0,function(){returnnewRange(0,1);},'Return resulting image with \'Content-Disposition: attachment \' headers for the browser to start downloading the image. Pass 0 for no header, or 1 for otherwise. Default value is set to 0.',true)
->label('scope','avatars.read')
->label('sdk.namespace','avatars')
->label('sdk.method','getQR')
->label('sdk.description','Converts a given plain text to a QR code image. You can use the query parameters to change the size and style of the resulting image.')