Function AnalyticsApiFactory

  • AnalyticsApi - factory interface

    Export

    Parameters

    • Optional configuration: Configuration
    • Optional basePath: string
    • Optional axios: AxiosInstance

    Returns {
        apiV1DappRateDappIdGet(dappId: string, page?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<DappRatingResponse>>;
        apiV1DappRateGet(dappId: string, userId?: string, userAddress?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<DappRatingRes>>;
        apiV1DappRatePost(body?: DappRating, options?: AxiosRequestConfig): Promise<AxiosResponse<DappRatingRes>>;
        downloadDappV1(dappId: string, userId?: string, userAddress?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
        visitDappV1(dappId: string, userId?: string, userAddress?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
    }

    • apiV1DappRateDappIdGet:function
      • Summary

        Get All rating of a dapp

        Throws

        Parameters

        • dappId: string
        • Optional page: string
        • Optional options: AxiosRequestConfig

          Override http request option.

        Returns Promise<AxiosResponse<DappRatingResponse>>

    • apiV1DappRateGet:function
      • Use this to get a user's rating for a dapp

        Summary

        Get User dApp Rating

        Throws

        Parameters

        • dappId: string
        • Optional userId: string
        • Optional userAddress: string
        • Optional options: AxiosRequestConfig

          Override http request option.

        Returns Promise<AxiosResponse<DappRatingRes>>

    • apiV1DappRatePost:function
      • Use this to register a rating from a user for a dApp

        Summary

        Rate the dApp

        Throws

        Parameters

        • Optional body: DappRating

          Send the request with dApp parameters

        • Optional options: AxiosRequestConfig

          Override http request option.

        Returns Promise<AxiosResponse<DappRatingRes>>

    • downloadDappV1:function
      • Summary

        Download dapp Build

        Throws

        Parameters

        • dappId: string

          The dappId of dapp where to visit.

        • Optional userId: string
        • Optional userAddress: string
        • Optional options: AxiosRequestConfig

          Override http request option.

        Returns Promise<AxiosResponse<void>>

    • visitDappV1:function
      • Summary

        Visit dapp's homepage

        Throws

        Parameters

        • dappId: string

          The dappId of dapp where to visit.

        • Optional userId: string
        • Optional userAddress: string
        • Optional options: AxiosRequestConfig

          Override http request option.

        Returns Promise<AxiosResponse<void>>

Generated using TypeDoc