src/Structure/Fb/Subscriber.php
/**
     * Finds subscribers by custom field value
     *
     * @param integer $field_id Custom field ID
     * @param string|int|null $field_value Custom field value
     *
     * @return array The resulting array that was received from ManyChat API
     * @throws CallMethodNotSucceedException If the result of calling method didn't succeed
     * @see https://api.manychat.com/swagger#/Subscriber/get_fb_subscriber_findByCustomField Documentation
     * of /fb/subscriber/findByCustomField method at manychat.com.
     *
     */
Finds subscribers by custom field value
@param integer $field_id Custom field ID
@param string|int|null $field_value Custom field value


Finds subscribers by custom field value @param integer $field_id Custom field ID @param string|int|null $field_value Custom field value
public function findByCustomField(int $field_id, $field_value): array
    {
        $arguments = [
            'field_id' => $field_id,
            'field_value' => $field_value,
        ];
        $methodName = $this->getMethodAddress(__FUNCTION__);
        return $this->getApi()->callMethod($methodName, $arguments, Request::GET);
    }
public function findByCustomField ( int $ field_id , $ field_value ) : array { $ arguments = [ 'field_id' => $ field_id , 'field_value' => $ field_value , ] ; $ methodName = $ this -> getMethodAddress ( __FUNCTION__ ) ; return $ this -> getApi ( ) -> callMethod ( $ methodName , $ arguments , Request :: GET ) ; }
Finds subscribers by custom field value
 @param integer $field_id Custom field ID
 @param string|int|null $field_value Custom field value
Finds subscribers by custom field value @param integer $field_id Custom field ID @param string|int|null $field_value Custom field value