apiverve_gamecharacter 1.2.4
apiverve_gamecharacter: ^1.2.4 copied to clipboard
Generate complete RPG-style characters with race, class, background, stats, and personality.
Game Character Generator API - Dart/Flutter Client #
Generate complete RPG-style characters with race, class, background, stats, and personality.
This is the Dart/Flutter client for the Game Character Generator API.
Installation #
Add this to your pubspec.yaml:
dependencies:
apiverve_gamecharacter: ^1.2.4
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage #
import 'package:apiverve_gamecharacter/apiverve_gamecharacter.dart';
void main() async {
final client = GamecharacterClient('YOUR_API_KEY');
try {
final response = await client.execute({
'race': 'elf',
'class': 'mage'
});
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response #
{
"status": "ok",
"error": null,
"data": {
"name": "Nimara Goldenbough",
"race": {
"name": "Elf",
"traits": [
"Graceful",
"Keen Senses",
"Long-lived"
]
},
"class": {
"name": "Mage",
"description": "Wielder of arcane magic",
"primaryStat": "intelligence",
"hitDie": "d6"
},
"background": "Criminal",
"personality": "Ambitious and driven",
"motivation": "Protect the innocent",
"stats": {
"strength": {
"value": 13,
"modifier": 1
},
"dexterity": {
"value": 12,
"modifier": 1
},
"constitution": {
"value": 9,
"modifier": -1
},
"intelligence": {
"value": 11,
"modifier": 0
},
"wisdom": {
"value": 4,
"modifier": -3
},
"charisma": {
"value": 8,
"modifier": -1
}
},
"hp": 5,
"totalStatPoints": 57,
"highestStat": "strength",
"lowestStat": "wisdom"
}
}
API Reference #
- API Home: Game Character Generator API
- Documentation: docs.apiverve.com/ref/gamecharacter
Authentication #
All requests require an API key. Get yours at apiverve.com.
License #
MIT License - see LICENSE for details.
Built with Dart for APIVerve