// OfferCredentialByID sends an offer to the holder based on a previously received proposal
OfferCredentialByID sends an offer to the holder based on a previously received proposal
// OfferCredentialByID sends an offer to the holder based on a previously received proposal
func (c *Client) OfferCredentialByID(credentialExchangeID string) (CredentialExchangeRecord, error) {
	var credentialExchange CredentialExchangeRecord
	err := c.post(fmt.Sprintf("/issue-credential/records/%s/send-offer", credentialExchangeID), nil, nil, &credentialExchange)
	if err != nil {
		return CredentialExchangeRecord{}, err
	}
	return credentialExchange, nil
}
func ( c * Client ) OfferCredentialByID ( credentialExchangeID string ) ( CredentialExchangeRecord , error ) { var credentialExchange CredentialExchangeRecord err := c . post ( fmt . Sprintf ( " " , credentialExchangeID ) , nil , nil , & credentialExchange ) if err != nil { return CredentialExchangeRecord { } , err } return credentialExchange , nil }
OfferCredentialByID sends an offer to the holder based on a previously received proposal
OfferCredentialByID sends an offer to the holder based on a previously received proposal