To import data into CiviCRM, the easiest way is through APIs.
API calls require both a site key and a user API key.
The site key is at:
To create a user API key it is easier to install a civiCRM extension
- Create a directory for civiCRM extensions
/var/www/drupal/sites/default/files/civicrm/custom_ext
make sure it is writable by the civicrm system
In my case it is writable by user civicrm - Import the civiCRM
/var/www/drupal/sites/all/modules/contrib/civicrm/api/v3/Group.php to create groups
http://wiki.civicrm.org/confluence/display/CRMDOC/REST+interface#RESTinterface-CreatingAPIkeysforusers
http://wiki.civicrm.org/confluence/display/CRMDOC/Extensions
http://10.0.0.27/index.php?q=civicrm/api/explorer#/index.php?q=civicrm/ajax/rest&entity=Group&action=create&debug=1&sequential=1&json=1&title=Test&description=test+group&visibility=User+and+User+Admin+Only&is_hidden=0&created_id=2&is_reserved=1
http://10.0.0.27/index.php?q=civicrm/api/explorer#explorer
http://wiki.civicrm.org/confluence/display/CRMDOC/Bootstrap+Reference
http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API