Skip to content
This repository was archived by the owner on Aug 29, 2020. It is now read-only.
This repository was archived by the owner on Aug 29, 2020. It is now read-only.

Error on creating contact. #2

Description

@aknamdeo

I am creating contact using following code.

$newc = new Contact;
$newc->setDisplayName('Ashish10');
$newc->setFamilyName('Namdeo10');
$newc->setGivenName('AKN11');
$newc->setEmailAddress('ak1naxxxxx@gmail.com');
$newc->setGroup(451121);
$newc->setMsisdn('919891xxxxxx');
$rest->save($newc);

But its throwing Internal Server Error on smsglobal script.
[content:protected] => {"error":"Undefined index: group on line 37 in /var/www/api/rest-api/src/Rest/Resource/Field/Validator/Unique.php"}
[handle:protected] => Resource id #2
[headers:protected] => HTTP/1.0 500 Internal Server Error

Is this issue in client script or on smsglobal script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions