Unicode Escape/Unescape API - Dart/Flutter Client
Unicode Escape/Unescape converts text into Unicode escape sequences or restores escaped strings back into readable characters. Send any string to get the transformed text and total character count.
This is the Dart/Flutter client for the Unicode Escape/Unescape API.
Installation
Add this to your pubspec.yaml:
dependencies:
apiverve_unicodeescape: ^1.2.6
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage
import 'package:apiverve_unicodeescape/apiverve_unicodeescape.dart';
void main() async {
final client = UnicodeescapeClient('YOUR_API_KEY');
try {
final response = await client.execute({
'text': 'Hello World',
'action': 'escape'
});
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response
{
"status": "ok",
"error": null,
"data": {
"action": "escape",
"original": "Hello World",
"escaped": "\\u0048\\u0065\\u006C\\u006C\\u006F\\u0020\\u0057\\u006F\\u0072\\u006C\\u0064",
"character_count": 11,
"unicode_points": [
{
"char": "H",
"unicode": "\\u0048",
"codepoint": "U+0048"
},
{
"char": "e",
"unicode": "\\u0065",
"codepoint": "U+0065"
},
{
"char": "l",
"unicode": "\\u006C",
"codepoint": "U+006C"
},
{
"char": "l",
"unicode": "\\u006C",
"codepoint": "U+006C"
},
{
"char": "o",
"unicode": "\\u006F",
"codepoint": "U+006F"
},
{
"char": " ",
"unicode": "\\u0020",
"codepoint": "U+0020"
},
{
"char": "W",
"unicode": "\\u0057",
"codepoint": "U+0057"
},
{
"char": "o",
"unicode": "\\u006F",
"codepoint": "U+006F"
},
{
"char": "r",
"unicode": "\\u0072",
"codepoint": "U+0072"
},
{
"char": "l",
"unicode": "\\u006C",
"codepoint": "U+006C"
},
{
"char": "d",
"unicode": "\\u0064",
"codepoint": "U+0064"
}
]
}
}
API Reference
- API Home: Unicode Escape/Unescape API
- Documentation: docs.apiverve.com/ref/unicodeescape
Authentication
All requests require an API key. Get yours at apiverve.com.
License
MIT License - see LICENSE for details.
Built with Dart for APIVerve
Libraries
- apiverve_unicodeescape
- Unicode Escape/Unescape API client for Dart/Flutter